|
@@ -148,6 +148,14 @@ class SinkConfigTestCase(unittest.TestCase):
|
148
|
148
|
self.assertEqual(str(self.obj_valid_gb),
|
149
|
149
|
"status: valid\nflags: GiveBack\nv: 15.00 V\ni: 3.00 A")
|
150
|
150
|
|
|
151
|
+ def test_str_valid_5v(self):
|
|
152
|
+ self.assertEqual(str(self.obj_valid_5v),
|
|
153
|
+ "status: valid\nflags: (none)\nv: 5.00 V\ni: 3.00 A")
|
|
154
|
+
|
|
155
|
+ def test_str_valid_1a(self):
|
|
156
|
+ self.assertEqual(str(self.obj_valid_1a),
|
|
157
|
+ "status: valid\nflags: (none)\nv: 15.00 V\ni: 1.00 A")
|
|
158
|
+
|
151
|
159
|
def test_eq_none(self):
|
152
|
160
|
self.assertTrue(self.obj_none == pdbuddy.SinkConfig())
|
153
|
161
|
|