def test_randn_default_dtype(self): with mock.patch('dpnp.random.normal') as m: random.randn(1, 2, 3) m.assert_called_once_with(size=(1, 2, 3))
def test_randn_invalid_argument(self): with self.assertRaises(TypeError): random.randn(1, 2, 3, unnecessary='unnecessary_argument')
def test_randn(self): with mock.patch('dpnp.random.distributions.normal') as m: random.randn(1, 2, 3, dtype=numpy.float32) m.assert_called_once_with(size=(1, 2, 3), dtype=numpy.float32)