code: def test_PythonRational__init__():
      assert QQ(0).numerator == 0
      assert QQ(0).denominator == 1
      assert QQ(0, 1).numerator == 0
      assert QQ(0, 1).denominator == 1
      assert QQ(0, -1).numerator == 0
      assert QQ(0, -1).denominator == 1
  
      assert QQ(1).numerator == 1
      assert QQ(1).denominator == 1
      assert QQ(1, 1).numerator == 1
      assert QQ(1, 1).denominator == 1
      assert QQ(-1, -1).numerator == 1
      assert QQ(-1, -1).denominator == 1
  
      assert QQ(-1).numerator == -1
      assert QQ(-1).denominator == 1
      assert QQ(-1, 1).numerator == -1
      assert QQ(-1, 1).denominator == 1
      assert QQ(1, -1).numerator == -1
      assert QQ(1, -1).denominator == 1
  
      assert QQ(1, 2).numerator == 1
      assert QQ(1, 2).denominator == 2
      assert QQ(3, 4).numerator == 3
      assert QQ(3, 4).denominator == 4
  
      assert QQ(2, 2).numerator == 1
      assert QQ(2, 2).denominator == 1
      assert QQ(2, 4).numerator == 1
      assert QQ(2, 4).denominator == 2
  
file_path: sympy/sympy/polys/tests/test_pythonrational.py
imports: from sympy.polys.domains import PythonRational
  from sympy.testing.pytest import raises
label_desc: Use image node_id 1 for calling a global function with example usage: test_PythonRational__init__() without return types