Skip to content

Commit

Permalink
Fix attribute name in functional test for object
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Skripnick committed Nov 18, 2015
1 parent e2649bb commit 9e06d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ddt.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
except NameError:
trivial_types = (type(None), bool, int, float, str)


def is_trivial(value):
if isinstance(value, trivial_types):
return True
Expand Down
2 changes: 1 addition & 1 deletion test/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class Mytest(object):
def test_object(self, val):
pass

assert_is_not_none(getattr(Mytest, 'test_object_1'))
assert_is_not_none(getattr(Mytest, 'test_object_1_object'))


def test_feed_data_with_invalid_identifier():
Expand Down

0 comments on commit 9e06d7b

Please sign in to comment.