def test_get_creds(self):
     hit_runner = RunHit()
     configs = hit_runner.get_creds('test_config.cfg')
     test_configs = {'key': '1234',
                     'secret_key': '5678'}
     self.assertEqual(configs['key'],
                      test_configs['key'])
     self.assertEqual(configs['secret_key'],
                      test_configs['secret_key'])
 def test_run_hit(self):
     hit_runner = RunHit()
     configs = hit_runner.get_creds('test_config.cfg')
     hit_runner.create_external_HIT(
         config_file='test_config.cfg',
         property_file='image_rate.properties',
         question_file='image_rate.question'
     )
     # If it didnt thrown an error the test must have passed
     # TODO make this better...
     self.assertEqual(1, 1)