Example #1
0
 def test_not_exists(self):
     mock_context = mock.Mock()
     role = Role(mock_context, Config2)
     self.assertFalse(role.exists())
Example #2
0
 def test_not_exists(self):
     mock_context = mock.Mock()
     role = Role(mock_context, Config2)
     self.assertFalse(role.exists())
Example #3
0
 def test_exists(self):
     mock_context = mock.Mock()
     role = Role(mock_context, Config1)
     self.assertTrue(role.exists())
Example #4
0
 def test_exists(self):
     mock_context = mock.Mock()
     role = Role(mock_context, Config1)
     self.assertTrue(role.exists())