def test_dbm_2(self): """Test function for dbm() 2/2""" self.assertTrue(np.allclose(dbm(self.v2), self.r2, atol=1e-8, rtol=1e-5)) self.assertTrue(np.isscalar(dbm(self.v2)))
def test_dbm_1(self): """Test function for dbm() 1/2""" self.assertTrue(np.allclose(dbm(self.v1), self.r1, atol=1e-8, rtol=1e-5))