Exemplo n.º 1
0
 def test_bad_credentials(self):
     """Test that an InvalidCredentials exception is raised when passing bad
     credentials
     """
     with self.assertRaises(InvalidCredentials):
         user = os.environ["TRAKT_TEST_USER"] + "sdf"
         password = os.environ["TRAKT_TEST_PASS"] + "aasdff"
         trakt.authenticate(user, password)
Exemplo n.º 2
0
 def setUp(self):
     """Grab environment information for validation"""
     self.user_name = os.environ['TRAKT_TEST_USER']
     self.password = os.environ['TRAKT_TEST_PASS']
     trakt.authenticate(self.user_name, self.password)
     self.movie = Movie('Gravity')