コード例 #1
0
def test_not_a_list():
    assert_bad_type("a_list_of_values", "list", "i'm not a list")
コード例 #2
0
def test_not_a_float():
    assert_bad_type('a_float', 'float', "i'm not a float")
コード例 #3
0
def test_not_a_number():
    assert_bad_type("a_number", "number", "i'm not a number")
コード例 #4
0
def test_not_a_float():
    assert_bad_type('a_float', 'float', "i'm not a float")
コード例 #5
0
def test_not_a_list():
    assert_bad_type('a_list_of_values', 'list', "i'm not a list")
コード例 #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")
コード例 #7
0
def test_not_a_boolean():
    assert_bad_type('a_boolean', 'boolean', "i'm not a boolean")
コード例 #8
0
def test_not_a_integer():
    assert_bad_type('an_integer', 'integer', "i'm not an integer")
コード例 #9
0
def test_not_a_boolean():
    assert_bad_type('a_boolean', 'boolean', "i'm not a boolean")
コード例 #10
0
def test_not_a_string():
    assert_bad_type('a_string', 'string', 1)
コード例 #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")
コード例 #12
0
def test_not_a_dict():
    assert_bad_type('a_dict', 'dict', "i'm not a dict")
コード例 #13
0
def test_not_a_list():
    assert_bad_type('a_list_of_values', 'list', "i'm not a list")
コード例 #14
0
def test_not_a_number():
    assert_bad_type('a_number', 'number', "i'm not a number")
コード例 #15
0
def test_not_a_dict():
    assert_bad_type("a_dict", "dict", "i'm not a dict")
コード例 #16
0
def test_not_a_string():
    assert_bad_type("a_string", "string", 1)
コード例 #17
0
def test_not_a_string():
    assert_bad_type('a_string', 'string', 1)
コード例 #18
0
def test_not_a_integer():
    assert_bad_type("an_integer", "integer", "i'm not an integer")
コード例 #19
0
def test_not_a_integer():
    assert_bad_type('an_integer', 'integer', "i'm not an integer")
コード例 #20
0
def test_not_a_boolean():
    assert_bad_type("a_boolean", "boolean", "i'm not a boolean")
コード例 #21
0
def test_not_a_datetime():
    assert_bad_type('a_datetime', 'datetime', "i'm not a datetime")
コード例 #22
0
def test_not_a_datetime():
    assert_bad_type("a_datetime", "datetime", "i'm not a datetime")
コード例 #23
0
def test_not_a_number():
    assert_bad_type('a_number', 'number', "i'm not a number")
コード例 #24
0
def test_not_a_float():
    assert_bad_type("a_float", "float", "i'm not a float")
コード例 #25
0
def test_not_a_dict():
    assert_bad_type('a_dict', 'dict', "i'm not a dict")
コード例 #26
0
def test_not_a_datetime():
    assert_bad_type('a_datetime', 'datetime', "i'm not a datetime")