Example #1
0
 def test_get_backends(self):
     backends = notification.get_backends()
     self.assertEquals(2, len(backends))
     self.assertIsInstance(backends[0], TestBackendA,
                           'Expected TestBackendA obj')
     self.assertIsInstance(backends[1], TestBackendB,
                           'Expected TestBackendB obj')
 def test_get_backends(self):
     backends = notification.get_backends()
     self.assertEquals(2, len(backends))
     self.assertIsInstance(backends[0], TestBackendA, 'Expected TestBackendA obj')
     self.assertIsInstance(backends[1], TestBackendB, 'Expected TestBackendB obj')