def setup_class(self): """Set up preliminary test data""" _test.create_deployment( 'ushine integration', 'http://dssg.ushahididev.com') _test.create_deployment('Nigeria budget monitoring', 'https://monitoringbudget.crowdmap.com')
def test_save(self): """Tests creation of a new deployment entry""" out = _test.create_deployment('uchaguzi 2013', 'http://uchaguzi.co.ke') assert_equals(out.url_hash, '87888b7f4d65d4947cde38b99e201544')