File: test_utils.py

package info (click to toggle)
sphinxcontrib-runcmd 0.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 136 kB
  • sloc: python: 152; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 210 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from sphinxcontrib.runcmd.utils import Singleton


class TheSingleton(Singleton):
    pass


def test_singleton():
    a = TheSingleton()
    b = TheSingleton()

    assert a == b
    assert hash(a) == hash(b)