Exemplo n.º 1
0
 def test_full(self):
     cc = fluxcoupling.classify_coupling((-1000, -1000.0))
     self.assertEqual(cc, fluxcoupling.CouplingClass.Full)
Exemplo n.º 2
0
 def test_directional_forward(self):
     cc = fluxcoupling.classify_coupling((-1000, 100.0))
     self.assertEqual(cc, fluxcoupling.CouplingClass.DirectionalForward)
Exemplo n.º 3
0
    def test_directional_reverse(self):
        cc = fluxcoupling.classify_coupling((None, 1000))
        self.assertEqual(cc, fluxcoupling.CouplingClass.DirectionalReverse)

        cc = fluxcoupling.classify_coupling((-1000, None))
        self.assertEqual(cc, fluxcoupling.CouplingClass.DirectionalReverse)
Exemplo n.º 4
0
 def test_inconsistent(self):
     cc = fluxcoupling.classify_coupling((0.0, 0.0))
     self.assertEqual(cc, fluxcoupling.CouplingClass.Inconsistent)
Exemplo n.º 5
0
 def test_uncoupled(self):
     cc = fluxcoupling.classify_coupling((None, None))
     self.assertEqual(cc, fluxcoupling.CouplingClass.Uncoupled)