Browse Source

Added more tests for SinkConfig.__str__

Clara Hobbs 7 years ago
parent
commit
dc3623c9af
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      test_pdbuddy/__init__.py

+ 8
- 0
test_pdbuddy/__init__.py View File

@@ -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
 

Loading…
Cancel
Save