示例#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)