def test_good_boids_for_regression():
    before_positions = list(fixtures['before_positions'])
    before_velocities = list(fixtures['before_velocities'])
    new_positions = list(Boids(configuration_file).get_raw_positions(before_positions, before_velocities))
    after_positions = list(fixtures['after_positions'])
    new_velocities = list(Boids(configuration_file).get_raw_velocities(before_positions, before_velocities))
    after_velocities = list(fixtures['after_velocities'])
    for i in range(len(new_positions)):
        assert_almost_equal(new_positions[0][i], after_positions[0][i], delta=0.1)
        assert_almost_equal(new_positions[1][i], after_positions[1][i], delta=0.1)
        assert_almost_equal(new_velocities[0][i], after_velocities[0][i], delta=15)
        assert_almost_equal(new_velocities[1][i], after_velocities[1][i], delta=15)
def test_good_boids_for_regression():
    before_positions = list(fixtures['before_positions'])
    before_velocities = list(fixtures['before_velocities'])
    new_positions = list(Boids(configuration_file).get_raw_positions(before_positions, before_velocities))
    after_positions = list(fixtures['after_positions'])
    new_velocities = list(Boids(configuration_file).get_raw_velocities(before_positions, before_velocities))
    after_velocities = list(fixtures['after_velocities'])
    for i in range(len(new_positions)):
        assert_almost_equal(new_positions[0][i], after_positions[0][i], delta=0.1)
        assert_almost_equal(new_positions[1][i], after_positions[1][i], delta=0.1)
        assert_almost_equal(new_velocities[0][i], after_velocities[0][i], delta=15)
        assert_almost_equal(new_velocities[1][i], after_velocities[1][i], delta=15)