File: test_python.py

package info (click to toggle)
2ping 4.5-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 492 kB
  • sloc: python: 3,304; makefile: 44; sh: 4
file content (9 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
import time
import unittest


class TestPython(unittest.TestCase):
    def test_monotonic(self):
        val1 = time.monotonic()
        val2 = time.monotonic()
        self.assertGreaterEqual(val2, val1)