Lines Matching refs:self
5 def test_no_args(self):
6 with self.assertRaises(TypeError):
9 def test_multi_args(self):
10 with self.assertRaises(TypeError):
13 def test_none(self):
14 self.assertEqual(ucl.load(None), None)
16 def test_null(self):
19 self.assertEqual(ucl.load(data), valid)
21 def test_int(self):
24 self.assertEqual(ucl.load(data), valid)
26 def test_braced_int(self):
29 self.assertEqual(ucl.load(data), valid)
31 def test_nested_int(self):
34 self.assertEqual(ucl.load(data), valid)
36 def test_str(self):
39 self.assertEqual(ucl.load(data), valid)
41 def test_float(self):
44 self.assertEqual(ucl.load(data), valid)
46 def test_boolean(self):
52 self.assertEqual(ucl.load(data), valid)
54 def test_empty_ucl(self):
55 self.assertEqual(ucl.load("{}"), {})
57 def test_single_brace(self):
58 self.assertEqual(ucl.load("{"), {})
60 def test_single_back_brace(self):
61 self.assertEqual(ucl.load("}"), {})
63 def test_single_square_forward(self):
64 self.assertEqual(ucl.load("["), [])
66 def test_invalid_ucl(self):
67 with self.assertRaisesRegex(ValueError, "unfinished key$"):
70 def test_comment_ignored(self):
71 self.assertEqual(ucl.load("{/*1*/}"), {})
73 def test_1_in(self):
91 self.assertEqual(ucl.load(in1.read()), valid)
93 def test_every_type(self):
122 self.assertEqual(ucl.load(data), valid)