8000 Remove call to count on list resource · zhangjingcat/twilio-python@e833ca1 · GitHub
[go: up one dir, main page]

Skip to content

Commit e833ca1

Browse files
author
Mitch Friedman
committed
Remove call to count on list resource
1 parent 7091630 commit e833ca1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/test_base_resource.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def setUp(self):
4141
def testListResourceInit(self):
4242
uri = "%s/%s" % (base_uri, self.r.name)
4343
assert_equal(self.r.uri, uri)
44+
assert_equal(str(self.r), "<ListResource>")
4445

4546
def testKeyValueLower(self):
4647
assert_equal(self.r.key, self.r.name.lower())

twilio/rest/resources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def load_instance(self, data):
432432
return instance
433433

434434
def __str__(self):
435-
return '<%s (%s)>' % (self.__class__.__name__, self.count())
435+
return '<%s>' % (self.__class__.__name__)
436436

437437
def list(self, **kw):
438438
"""Query the list resource for a list of InstanceResources.

0 commit comments

Comments
 (0)
0