Example #1
0
    def test_set_invalid_epd_auth(self):
        config = Configuration()

        with self.assertRaises(InvalidConfiguration):
            config.EPD_auth = FAKE_USER
Example #2
0
    def test_set_epd_auth(self):
        config = Configuration()
        config.EPD_auth = FAKE_CREDS

        self.assertEqual(config._username, FAKE_USER)
        self.assertEqual(config._password, FAKE_PASSWORD)