Skip to content

Commit

Permalink
Removing unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
rolobio committed May 30, 2019
1 parent 8f1aa1a commit 45c72b7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dictorm/test/test_dictorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ def assertRaisesAny(cls, exps, func, a=None, kw=None):
if isinstance(e, exps): return
raise Exception('Did not raise one of the exceptions provided!')

@classmethod
def assertType(cls, a, b):
if not isinstance(a, b):
raise TypeError('{0} is not type {1}'.format(str(a), b0))

def assertEqualNoRefs(self, a, b):
return self.assertEqual(_no_refs(a), _no_refs(b))

Expand Down Expand Up @@ -878,11 +873,11 @@ def test_results_cache(self):

subordinates = bob['subordinates']
for sub in subordinates:
self.assertType(sub, dictorm.Dict)
assert isinstance(sub, dictorm.Dict)
# Error would be raised if subordinates isn't cached
bob._table.get_where = error
for sub in subordinates:
self.assertType(sub, dictorm.Dict)
assert isinstance(sub, dictorm.Dict)

def test_reference_order(self):
"""
Expand Down

0 comments on commit 45c72b7

Please sign in to comment.