def test_angle_between(self): self.assertAlmostEqual(zonalstats.angle_between(355., 5.), 10.) self.assertAlmostEqual(zonalstats.angle_between(5., 355.), -10.)
def test_angle_between(self): assert zonalstats.angle_between(355.0, 5.0) == pytest.approx(10.0) assert zonalstats.angle_between(5.0, 355.0) == pytest.approx(-10.0)