Remove testTooLongName tests
These are better-covered by TestContainer.testContainerNameLimit and TestFile.testNameLimit in the same file. Change-Id: Ice48bc6492648613bc743b474d40892d7e4dcc64
This commit is contained in:
parent
c0a36dabb1
commit
b808c806b4
@ -851,12 +851,6 @@ class TestContainer(Base):
|
||||
'limit': 2})
|
||||
self.assertEqual(len(files), 2)
|
||||
|
||||
def testTooLongName(self):
|
||||
cont = self.env.account.container('x' * 257)
|
||||
self.assertFalse(cont.create(),
|
||||
'created container with name %s' % (cont.name))
|
||||
self.assert_status(400)
|
||||
|
||||
def testContainerExistenceCachingProblem(self):
|
||||
cont = self.env.account.container(Utils.create_name())
|
||||
self.assertRaises(ResponseError, cont.files)
|
||||
@ -2460,11 +2454,6 @@ class TestFile(Base):
|
||||
|
||||
self.assertEqual(file_item.read(), data)
|
||||
|
||||
def testTooLongName(self):
|
||||
file_item = self.env.container.file('x' * 1025)
|
||||
self.assertRaises(ResponseError, file_item.write)
|
||||
self.assert_status(400)
|
||||
|
||||
def testZeroByteFile(self):
|
||||
file_item = self.env.container.file(Utils.create_name())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user