Exemplo n.º 1
0
    def test_assert_is_tuple_numpy_array(self):
        """Checks assert_is_tuple when input is numpy array."""

        with self.assertRaises(TypeError):
            error_checking.assert_is_tuple(REAL_NUMPY_ARRAY)
Exemplo n.º 2
0
    def test_assert_is_tuple_list(self):
        """Checks assert_is_tuple when input is list."""

        with self.assertRaises(TypeError):
            error_checking.assert_is_tuple(REAL_NUMBER_LIST)
Exemplo n.º 3
0
    def test_assert_is_tuple_true(self):
        """Checks assert_is_tuple when input is tuple."""

        error_checking.assert_is_tuple(REAL_NUMBER_TUPLE)
Exemplo n.º 4
0
    def test_assert_is_tuple_scalar(self):
        """Checks assert_is_tuple when input is scalar."""

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