def test_create(self):
        project = self.ts.projects()[0]
        task = project.tasks()[0]
        entry = self.ts.create_entry(project.id, task.id)
        self.assertIsNotNone(entry)
        self.assertTrue(entry.started)
        self.assertEqual(entry.project_id, project.id)
        self.assertTrue((entry.timer_created - datetime.datetime.utcnow()) < datetime.timedelta(minutes = 1))
        # clean up
        entry.delete()
dataset/ETHPy150Open jakebasile/reap/reap/api/timesheet_tests.py/TestEntry.test_create/original