def test_day_name(self):
        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")

        import datetime
        dt = datetime.datetime(2016, 1, 25)
        name = get_day_name(dt)
        self.assertEqual(name, "Monday")
Exemple #2
0
 def test_faq_pythonm3(self):
     fLOG(__file__,
          self._testMethodName,
          OutputPrint=__name__ == "__main__")
     sortable_class([5, 5])
     list_of_installed_packages()
     fLOG(information_about_package("pip"))
     self.assertEqual(get_month_name(datetime(2016, 4, 5)), 'April')
     self.assertEqual(get_day_name(datetime(2016, 4, 17)), 'Sunday')
Exemple #3
0
 def test_faq_pythonm3(self):
     fLOG(
         __file__,
         self._testMethodName,
         OutputPrint=__name__ == "__main__")
     sortable_class([5, 5])
     list_of_installed_packages()
     fLOG(information_about_package("pip"))
     self.assertEqual(get_month_name(datetime(2016, 4, 5)), 'April')
     self.assertEqual(get_day_name(datetime(2016, 4, 17)), 'Sunday')
Exemple #4
0
    def test_day_name(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        import datetime
        dt = datetime.datetime(2016, 1, 25)
        name = get_day_name(dt)
        self.assertEqual(name, "Monday")