def _showSwapStatus_exception_test(self):
     w = 30
     c = 40
     actual = swap.showSwapStat(
         w, c, test_swap_dataFile.SHOW_SWAP_STATUS_EXCEPTION_IP)
     self.assertEquals(actual,
                       test_swap_dataFile.SHOW_SWAP_STATUS_EXCEPTION_OP)
 def _showSwapStatus_critical_test(self):
     w = 30
     c = 40
     actual = swap.showSwapStat(
         w, c, test_swap_dataFile.SHOW_SWAP_STATUS_CRITICAL_IP)
     self.assertEquals(actual,
                       test_swap_dataFile.SHOW_SWAP_STATUS_CRITICAL_OP)
 def _showSwapStatus_warning_test(self):
     w = 40
     c = 60
     actual = swap.showSwapStat(
         w, c, test_swap_dataFile.SHOW_SWAP_STATUS_WARNING_IP)
     self.assertEquals(actual,
                       test_swap_dataFile.SHOW_SWAP_STATUS_WARNING_OP)
 def _showSwapStatus_unknown_test(self):
     w = 80
     c = 90
     actual = swap.showSwapStat(
         w, c, test_swap_dataFile.SHOW_SWAP_STATUS_UNKNOWN_IP)
     self.assertEquals(actual,
                       test_swap_dataFile.SHOW_SWAP_STATUS_UNKNOWN_OP)
 def _showSwapStatus_exception_test(self):
     w = 30
     c = 40
     actual = swap.showSwapStat(
         w, c,
         test_swap_dataFile.SHOW_SWAP_STATUS_EXCEPTION_IP
     )
     self.assertEquals(
         actual,
         test_swap_dataFile.SHOW_SWAP_STATUS_EXCEPTION_OP
     )
 def _showSwapStatus_critical_test(self):
     w = 30
     c = 40
     actual = swap.showSwapStat(
         w, c,
         test_swap_dataFile.SHOW_SWAP_STATUS_CRITICAL_IP
     )
     self.assertEquals(
         actual,
         test_swap_dataFile.SHOW_SWAP_STATUS_CRITICAL_OP
     )
 def _showSwapStatus_warning_test(self):
     w = 40
     c = 60
     actual = swap.showSwapStat(
         w, c,
         test_swap_dataFile.SHOW_SWAP_STATUS_WARNING_IP
     )
     self.assertEquals(
         actual,
         test_swap_dataFile.SHOW_SWAP_STATUS_WARNING_OP
     )
 def _showSwapStatus_ok_test(self):
     w = 50
     c = 80
     actual = swap.showSwapStat(
         w, c,
         test_swap_dataFile.SHOW_SWAP_STATUS_OK_IP
     )
     self.assertEquals(
         actual,
         test_swap_dataFile.SHOW_SWAP_STATUS_OK_OP
     )
 def _showSwapStatus_unknown_test(self):
     w = 80
     c = 90
     actual = swap.showSwapStat(
         w, c,
         test_swap_dataFile.SHOW_SWAP_STATUS_UNKNOWN_IP
     )
     self.assertEquals(
         actual,
         test_swap_dataFile.SHOW_SWAP_STATUS_UNKNOWN_OP
     )
 def _showSwapStatus_ok_test(self):
     w = 50
     c = 80
     actual = swap.showSwapStat(w, c,
                                test_swap_dataFile.SHOW_SWAP_STATUS_OK_IP)
     self.assertEquals(actual, test_swap_dataFile.SHOW_SWAP_STATUS_OK_OP)