Exemplo n.º 1
0
 def test_mac_missing(self):
     key, mac = collector.parse_signature("key=MyKey")
     self.assertIsNone(mac)
Exemplo n.º 2
0
 def test_signature(self):
     key, mac = collector.parse_signature("key=MyKey, mac=AHash")
     self.assertEquals(key, "MyKey")
     self.assertEquals(mac, "AHash")
Exemplo n.º 3
0
 def test_key_missing(self):
     key, mac = collector.parse_signature("mac=test")
     self.assertIsNone(key)
Exemplo n.º 4
0
 def test_empty(self):
     key, mac = collector.parse_signature("")
     self.assertIsNone(key)
     self.assertIsNone(mac)
Exemplo n.º 5
0
 def test_mac_missing(self):
     key, mac = collector.parse_signature("key=MyKey")
     self.assertIsNone(mac)
Exemplo n.º 6
0
 def test_key_missing(self):
     key, mac = collector.parse_signature("mac=test")
     self.assertIsNone(key)
Exemplo n.º 7
0
 def test_signature(self):
     key, mac = collector.parse_signature("key=MyKey, mac=AHash")
     self.assertEquals(key, "MyKey")
     self.assertEquals(mac, "AHash")
Exemplo n.º 8
0
 def test_empty(self):
     key, mac = collector.parse_signature("")
     self.assertIsNone(key)
     self.assertIsNone(mac)