コード例 #1
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_year(s):
     s.assertEquals(f_t_l(31536000), _("1 year"))
コード例 #2
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_seconds_dropped(s):
     s.assertEquals(len(f_t_l(3601).split(", ")), 2)
コード例 #3
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_days(s):
     s.assertEquals(f_t_l(172800).split(", ")[0], _("%d days") % 2)
コード例 #4
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_nothours(s):
     s.assertEquals(f_t_l(3599).split(", ")[0], _("%d minutes") % 59)
コード例 #5
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_hours(s):
     s.assertEquals(f_t_l(7200), _("%d hours") % 2)
コード例 #6
0
 def test_notminutes(s):
     s.assertEquals(f_t_l(59).split(", ")[0], _("%d seconds") % 59)
コード例 #7
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_minute(s):
     s.assertEquals(f_t_l(60), _("1 minute"))
コード例 #8
0
 def test_notdays(s):
     s.assertEquals(f_t_l(86399).split(", ")[0], _("%d hours") % 23)
コード例 #9
0
 def test_seconds_dropped(s):
     s.assertEquals(len(f_t_l(3601).split(", ")), 2)
コード例 #10
0
 def test_hour(s):
     s.assertEquals(f_t_l(3600), _("1 hour"))
コード例 #11
0
 def test_hours(s):
     s.assertEquals(f_t_l(7200), _("%d hours") % 2)
コード例 #12
0
 def test_nothours(s):
     s.assertEquals(f_t_l(3599).split(", ")[0], _("%d minutes") % 59)
コード例 #13
0
 def test_minutes(s):
     s.assertEquals(f_t_l(120).split(", ")[0], _("%d minutes") % 2)
コード例 #14
0
 def test_minute(s):
     s.assertEquals(f_t_l(60), _("1 minute"))
コード例 #15
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_drop_zero(s):
     s.assertEquals(f_t_l(3601), ", ".join([_("1 hour"), _("1 second")]))
コード例 #16
0
 def test_day(s):
     s.assertEquals(f_t_l(86400), _("1 day"))
コード例 #17
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_limit(s):
     s.assertEquals(len(f_t_l(2 ** 31).split(", ")), 2)
コード例 #18
0
 def test_days(s):
     s.assertEquals(f_t_l(172800).split(", ")[0], _("%d days") % 2)
コード例 #19
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_notminutes(s):
     s.assertEquals(f_t_l(59).split(", ")[0], _("%d seconds") % 59)
コード例 #20
0
 def test_notyears(s):
     s.assertEquals(f_t_l(31535999).split(", ")[0], _("%d days") % 364)
コード例 #21
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_minutes(s):
     s.assertEquals(f_t_l(120).split(", ")[0], _("%d minutes") % 2)
コード例 #22
0
 def test_year(s):
     s.assertEquals(f_t_l(31536000), _("1 year"))
コード例 #23
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_hour(s):
     s.assertEquals(f_t_l(3600), _("1 hour"))
コード例 #24
0
 def test_years(s):
     s.assertEquals(f_t_l(63072000).split(", ")[0], _("%d years") % 2)
コード例 #25
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_notdays(s):
     s.assertEquals(f_t_l(86399).split(", ")[0], _("%d hours") % 23)
コード例 #26
0
 def test_drop_zero(s):
     s.assertEquals(f_t_l(3601), ", ".join([_("1 hour"), _("1 second")]))
コード例 #27
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_day(s):
     s.assertEquals(f_t_l(86400), _("1 day"))
コード例 #28
0
 def test_limit_zero(s):
     s.assertEquals(f_t_l(1, limit=0), _("1 second"))
コード例 #29
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_notyears(s):
     s.assertEquals(f_t_l(31535999).split(", ")[0], _("%d days") % 364)
コード例 #30
0
 def test_limit(s):
     s.assertEquals(len(f_t_l(2**31).split(", ")), 2)
コード例 #31
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_years(s):
     s.assertEquals(f_t_l(63072000).split(", ")[0], _("%d years") % 2)
コード例 #32
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_second(s):
     s.assertEquals(f_t_l(1).split(", ")[0], _("1 second"))
コード例 #33
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_limit_zero(s):
     s.assertEquals(f_t_l(1, limit=0), _("1 second"))
コード例 #34
0
ファイル: test_util.py プロジェクト: brunob/quodlibet
 def test_seconds(s):
     s.assertEquals(f_t_l(2).split(", ")[0], _("%d seconds") % 2)
コード例 #35
0
 def test_second(s):
     s.assertEquals(f_t_l(1).split(", ")[0], _("1 second"))
コード例 #36
0
 def test_seconds(s):
     s.assertEquals(f_t_l(2).split(", ")[0], _("%d seconds") % 2)