Skip to content

Commit

Permalink
[fix] Test for repr
Browse files Browse the repository at this point in the history
  • Loading branch information
Astalaseven committed Jan 4, 2014
1 parent 1eaed9c commit 48e5875
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ics/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def __repr__(self):
self.name,
len(self.params),
"s" if len(self.params) > 1 else "",
self.value
)
self.value,
)

def __getitem__(self, item):
return self.params[item]
Expand Down
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def test_repr(self):
e = Event(begin=0, end=10)
c = Container("test", e)

self.assertEqual("<Container 'test' with 1 elements>", repr(c))
self.assertEqual("<Container 'test' with 1 element>", repr(c))


class TestEvent(unittest.TestCase):
Expand Down

0 comments on commit 48e5875

Please sign in to comment.