Esempio n. 1
0
    def test_assert_is_array_numpy_array(self):
        """Checks assert_is_array when input is numpy array."""

        error_checking.assert_is_array(REAL_NUMPY_ARRAY)
Esempio n. 2
0
    def test_assert_is_array_list(self):
        """Checks assert_is_array when input is list."""

        error_checking.assert_is_array(REAL_NUMBER_LIST)
Esempio n. 3
0
    def test_assert_is_array_tuple(self):
        """Checks assert_is_array when input is tuple."""

        error_checking.assert_is_array(REAL_NUMBER_TUPLE)
Esempio n. 4
0
    def test_assert_is_array_scalar(self):
        """Checks assert_is_array when input is scalar."""

        with self.assertRaises(TypeError):
            error_checking.assert_is_array(SINGLE_INTEGER)