def test_is_not_credentials(self): self.assertFalse(is_credentials(None)) self.assertFalse(is_credentials("username"))
def test_is_credentials(self): self.assertTrue(is_credentials(("username", "password")))