

def setUp(self):
    self.assert_counts([0, 0], [Run, Command])
    command = Command.objects.create(title='test', slug='test', command_to_run='ls')
    self.assert_counts([0, 1], [Run, Command])
    run = Run.objects.create(command=command, command_run=command.command_to_run)
    self.assert_counts([1, 1], [Run, Command])
    self.run = run
    self.command = command

dataset/ETHPy150Open garethr/Asteroid/asteroid/apps/runner/tests/models.py CommandTests.setUp/original