def test_getting_resource_status(self):
     r = Application(
             MagicMock(),
             properties={'status': Application.STATUS_ENABLED})
     self.assertEqual(r.STATUS_ENABLED, r.get_status())
Exemple #2
0
 def test_getting_resource_status(self):
     r = Application(MagicMock(),
                     properties={'status': Application.STATUS_ENABLED})
     self.assertEqual(r.STATUS_ENABLED, r.get_status())
 def test_resource_status_is_disabled_if_not_specified(self):
     r = Application(
             MagicMock(),
             properties={})
     self.assertEqual(r.STATUS_DISABLED, r.get_status())
Exemple #4
0
 def test_resource_status_is_disabled_if_not_specified(self):
     r = Application(MagicMock(), properties={})
     self.assertEqual(r.STATUS_DISABLED, r.get_status())