Exemple #1
0
 def test_get_voucher(self):
     username = '******'
     voucher = Radcheck.objects.create(user=None,
                                       username=username,
                                       attribute='MD5-Password',
                                       op=':=',
                                       value=md5_password('12345'))
     self.assertTrue(isinstance(rules.get_voucher(username), Radcheck))
     voucher.delete()
Exemple #2
0
 def test_get_voucher_None(self):
     self.assertEqual(rules.get_voucher('bbbb'), None)
Exemple #3
0
 def test_get_voucher(self):
     username = '******'
     voucher = Radcheck.objects.create(user=None, username=username,
         attribute='MD5-Password', op=':=', value=md5_password('12345'))
     self.assertTrue(isinstance(rules.get_voucher(username), Radcheck))
     voucher.delete()
Exemple #4
0
 def test_get_voucher_None(self):
     self.assertEqual(rules.get_voucher('bbbb'), None)