Exemple #1
0
    def test_min_flt(self):
        process_memory_usage = ProcessMemoryUtil(1, 1.34,
                                                 self.__metric_repository)

        min_flt = process_memory_usage.minflt()

        self.assertEquals(min_flt, 6.72)
Exemple #2
0
    def test_min_flt_if_previous_value_is_None(self):
        process_memory_usage = ProcessMemoryUtil(2, 1.34,
                                                 self.__metric_repository)

        min_flt = process_memory_usage.minflt()

        self.assertIsNone(min_flt)
    def test_min_flt(self):
        process_memory_usage = ProcessMemoryUtil(1,1.34,self.__metric_repository)
        test_min_flt = float("%.2f"%(((573935 + 14509) - (573930 + 14500))/1.34))

        min_flt = process_memory_usage.minflt()

        self.assertEquals(min_flt, test_min_flt)
    def test_min_flt_if_previous_value_is_None(self):
        process_memory_usage = ProcessMemoryUtil(2,1.34,self.__metric_repository)

        min_flt = process_memory_usage.minflt()

        self.assertIsNone(min_flt)
    def test_min_flt(self):
        process_memory_usage = ProcessMemoryUtil(1,1.34,self.__metric_repository)

        min_flt = process_memory_usage.minflt()

        self.assertEquals(min_flt, 6.72)