Esempio n. 1
0
def test_not_a_list():
    assert_bad_type("a_list_of_values", "list", "i'm not a list")
Esempio n. 2
0
def test_not_a_float():
    assert_bad_type('a_float', 'float', "i'm not a float")
Esempio n. 3
0
def test_not_a_number():
    assert_bad_type("a_number", "number", "i'm not a number")
Esempio n. 4
0
def test_not_a_float():
    assert_bad_type('a_float', 'float', "i'm not a float")
Esempio n. 5
0
def test_not_a_list():
    assert_bad_type('a_list_of_values', 'list', "i'm not a list")
Esempio n. 6
0
def test_not_a_binary():
    # 'u' literal prefix produces type `str` in Python 3
    assert_bad_type('a_binary', 'binary', u"i'm not a binary")
Esempio n. 7
0
def test_not_a_boolean():
    assert_bad_type('a_boolean', 'boolean', "i'm not a boolean")
Esempio n. 8
0
def test_not_a_integer():
    assert_bad_type('an_integer', 'integer', "i'm not an integer")
Esempio n. 9
0
def test_not_a_boolean():
    assert_bad_type('a_boolean', 'boolean', "i'm not a boolean")
Esempio n. 10
0
def test_not_a_string():
    assert_bad_type('a_string', 'string', 1)
Esempio n. 11
0
def test_not_a_binary():
    # 'u' literal prefix produces type `str` in Python 3
    assert_bad_type('a_binary', 'binary', u"i'm not a binary")
Esempio n. 12
0
def test_not_a_dict():
    assert_bad_type('a_dict', 'dict', "i'm not a dict")
Esempio n. 13
0
def test_not_a_list():
    assert_bad_type('a_list_of_values', 'list', "i'm not a list")
Esempio n. 14
0
def test_not_a_number():
    assert_bad_type('a_number', 'number', "i'm not a number")
Esempio n. 15
0
def test_not_a_dict():
    assert_bad_type("a_dict", "dict", "i'm not a dict")
Esempio n. 16
0
def test_not_a_string():
    assert_bad_type("a_string", "string", 1)
Esempio n. 17
0
def test_not_a_string():
    assert_bad_type('a_string', 'string', 1)
Esempio n. 18
0
def test_not_a_integer():
    assert_bad_type("an_integer", "integer", "i'm not an integer")
Esempio n. 19
0
def test_not_a_integer():
    assert_bad_type('an_integer', 'integer', "i'm not an integer")
Esempio n. 20
0
def test_not_a_boolean():
    assert_bad_type("a_boolean", "boolean", "i'm not a boolean")
Esempio n. 21
0
def test_not_a_datetime():
    assert_bad_type('a_datetime', 'datetime', "i'm not a datetime")
Esempio n. 22
0
def test_not_a_datetime():
    assert_bad_type("a_datetime", "datetime", "i'm not a datetime")
Esempio n. 23
0
def test_not_a_number():
    assert_bad_type('a_number', 'number', "i'm not a number")
Esempio n. 24
0
def test_not_a_float():
    assert_bad_type("a_float", "float", "i'm not a float")
Esempio n. 25
0
def test_not_a_dict():
    assert_bad_type('a_dict', 'dict', "i'm not a dict")
Esempio n. 26
0
def test_not_a_datetime():
    assert_bad_type('a_datetime', 'datetime', "i'm not a datetime")