Exemplo n.º 1
0
 def test_get_group_key_returns_same_if_email(self):
     email = f"{self.group}@{self.domain}"
     self.assertEqual(email, get_group_key(self.domain, email))
Exemplo n.º 2
0
 def test_get_group_key(self):
     expected = f"{self.group}@{self.domain}"
     self.assertEqual(expected, get_group_key(self.domain, self.group))
Exemplo n.º 3
0
 def test_get_group_key_returns_same_if_email(self):
     email = "{group}@{domain}".format(domain=self.domain, group=self.group)
     self.assertEqual(email, get_group_key(self.domain, email))
Exemplo n.º 4
0
 def test_get_group_key_no_params(self):
     self.assertRaises(ValueError, lambda: get_group_key("", ""))
     self.assertRaises(ValueError, lambda: get_group_key(self.domain, ""))
     self.assertRaises(ValueError, lambda: get_group_key("", self.group))
Exemplo n.º 5
0
 def test_get_group_key(self):
     expected = "{group}@{domain}".format(domain=self.domain,
                                          group=self.group)
     self.assertEqual(expected, get_group_key(self.domain, self.group))