~ubuntu-branches/ubuntu/quantal/nova/quantal-proposed

« back to all changes in this revision

Viewing changes to nova/tests/image/test_fake.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-08-16 14:04:11 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20120816140411-0mr4n241wmk30t9l
Tags: upstream-2012.2~f3
ImportĀ upstreamĀ versionĀ 2012.2~f3

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
                          self.context,
109
109
                          '34')
110
110
 
111
 
    def test_delete_all(self):
112
 
        self.image_service.create(self.context, {'id': '32', 'foo': 'bar'})
113
 
        self.image_service.create(self.context, {'id': '33', 'foo': 'bar'})
114
 
        self.image_service.create(self.context, {'id': '34', 'foo': 'bar'})
115
 
        self.image_service.delete_all()
116
 
        index = self.image_service.detail(self.context)
117
 
        self.assertEquals(len(index), 0)
118
 
 
119
111
    def test_create_then_get(self):
120
112
        blob = 'some data'
121
113
        s1 = StringIO.StringIO(blob)