def test_validate(self):
    import datetime
    form = TimeFieldForm()
    result = form.validate({})
    self.assertEqual(result, False)
    form.reset()
    result = form.validate({'time_field': 'hoge'})
    self.assertEqual(result, False)
    form.reset()
    result = form.validate({'time_field': '10:15'})
    self.assertEqual(result, True)
    self.assertEqual(form['time_field'], datetime.time(10, 15))
The representation of a Project is Project(directory).
dataset/ETHPy150Open IanLewis/kay/kay/tests/formtest.py/TimeFieldTest.test_validate--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/python/test/test_release.py/ProjectTest.test_repr