Add failing test for #1809

This commit is contained in:
Ollie Ford 2018-09-05 10:43:39 +01:00
parent e8c65d3d85
commit 28aa5d34b0
No known key found for this signature in database
GPG Key ID: 2CC3899BA77CD9DA

View File

@ -85,3 +85,14 @@ class TesterWithSetup(unittest.TestCase):
def test_still_the_same(self): def test_still_the_same(self):
bucket = self.conn.get_bucket('mybucket') bucket = self.conn.get_bucket('mybucket')
bucket.name.should.equal("mybucket") bucket.name.should.equal("mybucket")
@mock_s3_deprecated
class TesterWithStaticmethod(object):
@staticmethod
def static(*args):
assert not args or not isinstance(args[0], TesterWithStaticmethod)
def test_no_instance_sent_to_staticmethod(self):
self.static()