Esempio n. 1
0
 def test_not_exists(self):
     mock_context = mock.Mock()
     policy = Policy(mock_context, Config2)
     self.assertFalse(policy.exists())
Esempio n. 2
0
 def test_not_exists(self):
     mock_context = mock.Mock()
     policy = Policy(mock_context, Config2)
     self.assertFalse(policy.exists())
Esempio n. 3
0
 def test_exists(self):
     mock_context = mock.Mock()
     policy = Policy(mock_context, Config1)
     self.assertTrue(policy.exists())
Esempio n. 4
0
 def test_exists(self):
     mock_context = mock.Mock()
     policy = Policy(mock_context, Config1)
     self.assertTrue(policy.exists())