Пример #1
0
class LP658917(TestCase):
    def setUp(self):
        super(LP658917, self).setUp()
        self.bundle_stream = fixtures.create_bundle_stream("/anonymous/")
        self.dashboard_api = DashboardAPI()
        self.content_sha1 = None

    def tearDown(self):
        if self.content_sha1:
            Bundle.objects.get(content_sha1=self.content_sha1).delete_files()
        super(LP658917, self).tearDown()

    def test_658917(self):
        """TestCase.units is not assigned a null value"""
        try:
            self.content_sha1 = self.dashboard_api.put(
                resource_string(__name__, 'LP658917.json'), 'LP658917.json',
                self.bundle_stream.pathname)
        except IntegrityError:
            self.fail("LP658917 regression, IntegrityError raised")
Пример #2
0
class LP658917(TestCase):

    def setUp(self):
        super(LP658917, self).setUp()
        self.bundle_stream = fixtures.create_bundle_stream("/anonymous/")
        self.dashboard_api = DashboardAPI()
        self.content_sha1 = None

    def tearDown(self):
        if self.content_sha1:
            Bundle.objects.get(content_sha1=self.content_sha1).delete_files()
        super(LP658917, self).tearDown()

    def test_658917(self):
        """TestCase.units is not assigned a null value"""
        try:
            self.content_sha1 = self.dashboard_api.put(
                resource_string(__name__, 'LP658917.json'),
                'LP658917.json', self.bundle_stream.pathname)
        except IntegrityError:
            self.fail("LP658917 regression, IntegrityError raised")
Пример #3
0
 def setUp(self):
     super(LP658917, self).setUp()
     self.bundle_stream = fixtures.create_bundle_stream("/anonymous/")
     self.dashboard_api = DashboardAPI()
     self.content_sha1 = None
Пример #4
0
 def setUp(self):
     super(LP658917, self).setUp()
     self.bundle_stream = fixtures.create_bundle_stream("/anonymous/")
     self.dashboard_api = DashboardAPI()
     self.content_sha1 = None