예제 #1
0
def test_drop_priv(cpo):
    utils.drop_priv(100, 100)
    assert cpo.called
예제 #2
0
 def test_drop_priv(self, cpo):
     utils.drop_priv(100, 100)
     self.assertEqual(cpo.call_count, 1)
     self.assertEqual(cpo.call_args, ((100, 100), {}))
예제 #3
0
def test_drop_priv(cpo):
    utils.drop_priv(100, 100)
    assert_equal(cpo.call_count, 1)
예제 #4
0
def test_drop_priv(cpo):
    utils.drop_priv(100, 100)
    assert cpo.called
예제 #5
0
def test_drop_priv(cpo):
    utils.drop_priv(100, 100)
    assert_equal(cpo.call_count, 1)