Esempio n. 1
0
 def test_bad_lookup_url(self):
     """
     Test that an exception is raised during the iTunes Store lookup URL
     generation based on a random URL.
     """
     with self.assertRaises(Exception):
         generate_lookup_query('http://bad-url.com/')
Esempio n. 2
0
 def test_good_lookup_url(self):
     """
     Test the correct iTunes Store lookup URL generation based on an iTunes
     Store URL.
     """
     self.assertEqual(generate_lookup_query(STORE_URL), LOOKUP_URL)