diff --git a/.ghcid b/.ghcid new file mode 100644 index 00000000..9c11300d --- /dev/null +++ b/.ghcid @@ -0,0 +1 @@ +--command "cabal repl --enable-multi-repl" diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..2f7cd07f --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +ghc*.tar.xz filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a916c0c7..272a2f8c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,6 +4,10 @@ env: # Bump this number to invalidate the Github-actions cache cache-invalidation-key: 0 nixpkgs-url: https://github.com/NixOS/nixpkgs/archive/574d1eac1c200690e27b8eb4e24887f8df7ac27c.tar.gz + NIX_PATH: https://github.com/NixOS/nixpkgs/archive/574d1eac1c200690e27b8eb4e24887f8df7ac27c.tar.gz + ghc-exe: $(pwd)/ghc-dps-compact-95615577d7/bin/ghc + ghc-name: ghc-dps-compact-95615577d7 + ghc-internal-name: ghc-9.11.20241002-x86_64-unknown-linux jobs: cabal-test: @@ -13,7 +17,9 @@ jobs: ghc-version: [96, 98, 910] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + lfs: false - uses: cachix/install-nix-action@v15 with: nix_path: "${{ env.nixpkgs-url }}" @@ -33,19 +39,71 @@ jobs: - name: Update Cabal's database run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal update" - name: Build Cabal's dependencies - run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build --allow-newer --disable-tests --disable-benchmarks --dependencies-only" + run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build --dependencies-only" + - name: Build + run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build --run-tests" + - name: Haddock + run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal haddock" + - name: cabal-docspec + run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal-docspec" + - name: Build benchmarks + run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build linear-base:bench:bench" + - name: Run benchmarks in isolation + run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "echo $'=== Benchmarks (isolation) ===\n\n' > benchmark_ghc${{ matrix.ghc-version }}.txt && cabal run -v0 linear-base:bench:bench -- -l | while read -r name; do cabal run -v0 linear-base:bench:bench -- -p '"'$'"0 == \"'\""'$'"name\"'\"' 2>&1 | tee -a benchmark_ghc${{ matrix.ghc-version }}.txt; done" + - name: Upload benchmark results + uses: actions/upload-artifact@v3 + with: + name: linear-base_benchmarks_ghc${{ matrix.ghc-version }} + path: | + **/*.dump-simpl + benchmark_ghc${{ matrix.ghc-version }}.txt + retention-days: 90 + + cabal-test-ghc-dps-compact: + name: cabal test - ghc-dps-compact + runs-on: [self-hosted, Linux, X64] + steps: + - uses: actions/checkout@v3 + with: + lfs: true + - name: Checkout LFS objects + run: git lfs checkout + - name: Build Nix dependencies + run: nix-shell --arg installHls 'false' --pure --run "echo '=== Nix dependencies installed ==='" + - name: Install custom GHC + run: nix-shell --pure --run "rm -rf ${{ env.ghc-name }} ${{ env.ghc-internal-name }} && tar xJf ${{ env.ghc-name }}.tar.xz && mv ${{ env.ghc-internal-name }} ${{ env.ghc-name }}" + - name: Init Cabal's config file + run: nix-shell --arg installHls 'false' --pure --run "cabal --config-file=$HOME/.cabal/config user-config -f init" + - name: Update Cabal's database + run: nix-shell --arg installHls 'false' --pure --run "cabal update" + - name: Build Cabal's dependencies + run: nix-shell --arg installHls 'false' --pure --run "cabal build -w ${{ env.ghc-exe }} --dependencies-only" - name: Build - run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal build --allow-newer --disable-tests --disable-benchmarks" + run: nix-shell --arg installHls 'false' --pure --run "cabal build -w ${{ env.ghc-exe }} --run-tests" - name: Haddock - run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run "cabal --allow-newer haddock" + run: nix-shell --arg installHls 'false' --pure --run "cabal haddock -w ${{ env.ghc-exe }}" - name: cabal-docspec - run: nix-shell --arg ghcVersion '"${{ matrix.ghc-version }}"' --arg installHls 'false' --pure --run cabal-docspec + run: nix-shell --arg installHls 'false' --pure --run "echo '# [DISABLED because of https://github.com/phadej/cabal-extras/issues/160]' cabal-docspec -w ${{ env.ghc-exe }}" + - name: Build benchmarks + run: nix-shell --arg installHls 'false' --pure --run "cabal build -w ${{ env.ghc-exe }} linear-base:bench:bench" + - name: Run benchmarks in isolation + run: nix-shell --arg installHls 'false' --pure --run "echo $'=== Benchmarks (isolation) ===\n\n' > benchmark_${{ env.ghc-name }}.txt && cabal run -w ${{ env.ghc-exe }} -v0 linear-base:bench:bench -- -l | while read -r name; do cabal run -w ${{ env.ghc-exe }} -v0 linear-base:bench:bench -- -p '"'$'"0 == \"'\""'$'"name\"'\"' 2>&1 | tee -a benchmark_${{ env.ghc-name }}.txt; done" + - name: Upload benchmark results + uses: actions/upload-artifact@v3 + with: + name: linear-base_benchmarks_${{ env.ghc-name }} + path: | + **/*.dump-simpl + benchmark_${{ env.ghc-name }}.txt + retention-days: 90 ormolu: name: check formatting with ormolu runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + lfs: false - uses: cachix/install-nix-action@v15 with: nix_path: "${{ env.nixpkgs-url }}" @@ -64,7 +122,9 @@ jobs: name: stack build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + lfs: false - uses: cachix/install-nix-action@v15 with: nix_path: "${{ env.nixpkgs-url }}" diff --git a/.gitignore b/.gitignore index 64f6907a..4b656374 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,7 @@ cabal.sandbox.config .stack-work/ cabal.project.local .HTF/ + +**/*.dump-simpl +ghc-dps-compact-95615577d7 +benchmark_*.txt diff --git a/bench-version-changes/ghc-dps-compact/after/Bench/Compact.hs b/bench-version-changes/ghc-dps-compact/after/Bench/Compact.hs new file mode 100644 index 00000000..3b752232 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/Bench/Compact.hs @@ -0,0 +1,19 @@ +module Bench.Compact where + +import Bench.Compact.BFTraversal (bftraversalBenchgroup) +import Bench.Compact.DList (dlistBenchgroup) +import Bench.Compact.Map (mapBenchgroup) +import Bench.Compact.Queue (queueBenchgroup) +import Bench.Compact.SExpr (sexprBenchgroup) +import Test.Tasty.Bench + +benchmarks :: Benchmark +benchmarks = + bgroup + "DPS interface for compact regions" + [ bftraversalBenchgroup, + mapBenchgroup, + dlistBenchgroup, + queueBenchgroup, + sexprBenchgroup + ] diff --git a/bench-version-changes/ghc-dps-compact/after/Bench/Compact/BFTraversal.hs b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/BFTraversal.hs new file mode 100644 index 00000000..da657a20 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/BFTraversal.hs @@ -0,0 +1,25 @@ +module Bench.Compact.BFTraversal where + +import Bench.Compact.Utils as Utils +import Compact.BFTraversal as BFTraversal +import Control.DeepSeq (force) +import Control.Exception (evaluate) +import Test.Tasty.Bench (Benchmark) + +dataSets :: [(IO (BinTree ()), String)] +dataSets = + [ (evaluate $ force (go 0 10), "2^10"), + (evaluate $ force (go 0 13), "2^13"), + (evaluate $ force (go 0 16), "2^16"), + (evaluate $ force (go 0 19), "2^19"), + (evaluate $ force (go 0 22), "2^22") + ] + where + go :: Int -> Int -> BinTree () + go currentDepth maxDepth = + if currentDepth >= maxDepth + then Nil + else Node () (go (currentDepth + 1) maxDepth) (go (currentDepth + 1) maxDepth) + +bftraversalBenchgroup :: Benchmark +bftraversalBenchgroup = Utils.benchImpls "Breadth-first tree traversal" BFTraversal.impls dataSets diff --git a/bench-version-changes/ghc-dps-compact/after/Bench/Compact/DList.hs b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/DList.hs new file mode 100644 index 00000000..7ff02f20 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/DList.hs @@ -0,0 +1,21 @@ +{-# OPTIONS_GHC -Wno-type-defaults #-} + +module Bench.Compact.DList where + +import Bench.Compact.Utils as Utils +import Compact.DList as DList +import Control.DeepSeq (force) +import Control.Exception (evaluate) +import Test.Tasty.Bench (Benchmark) + +dataSets :: [(IO [[Int]], String)] +dataSets = + [ (evaluate $ force (fmap (\i -> [(10 * i + 0) .. (10 * i + 9)]) [0 .. (((2 ^ 10) `div` 10) - 1)]), "2^10"), + (evaluate $ force (fmap (\i -> [(10 * i + 0) .. (10 * i + 9)]) [0 .. (((2 ^ 13) `div` 10) - 1)]), "2^13"), + (evaluate $ force (fmap (\i -> [(10 * i + 0) .. (10 * i + 9)]) [0 .. (((2 ^ 16) `div` 10) - 1)]), "2^16"), + (evaluate $ force (fmap (\i -> [(10 * i + 0) .. (10 * i + 9)]) [0 .. (((2 ^ 19) `div` 10) - 1)]), "2^19"), + (evaluate $ force (fmap (\i -> [(10 * i + 0) .. (10 * i + 9)]) [0 .. (((2 ^ 22) `div` 10) - 1)]), "2^22") + ] + +dlistBenchgroup :: Benchmark +dlistBenchgroup = benchImpls "List and DList concatenation" DList.impls dataSets diff --git a/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Map.hs b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Map.hs new file mode 100644 index 00000000..9952a450 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Map.hs @@ -0,0 +1,23 @@ +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE TupleSections #-} +{-# OPTIONS_GHC -Wno-type-defaults #-} + +module Bench.Compact.Map where + +import Bench.Compact.Utils as Utils +import Compact.Map as Map +import Control.DeepSeq (force) +import Control.Exception (evaluate) +import Test.Tasty.Bench (Benchmark) + +dataSets :: [(IO [Int], String)] +dataSets = + [ ((evaluate $ force [1 .. 2 ^ 10]), "2^10"), + ((evaluate $ force [1 .. 2 ^ 13]), "2^13"), + ((evaluate $ force [1 .. 2 ^ 16]), "2^16"), + ((evaluate $ force [1 .. 2 ^ 19]), "2^19"), + ((evaluate $ force [1 .. 2 ^ 22]), "2^22") + ] + +mapBenchgroup :: Benchmark +mapBenchgroup = benchImpls "map on List" Map.impls dataSets diff --git a/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Queue.hs b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Queue.hs new file mode 100644 index 00000000..918a74fc --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Queue.hs @@ -0,0 +1,20 @@ +{-# OPTIONS_GHC -Wno-type-defaults #-} + +module Bench.Compact.Queue where + +import Bench.Compact.Utils as Utils +import Compact.Queue as Queue +import Data.Word (Word64) +import Test.Tasty.Bench (Benchmark) + +dataSets :: [(IO Word64, String)] +dataSets = + [ (return $ 2 ^ 10, "2^10"), + (return $ 2 ^ 13, "2^13"), + (return $ 2 ^ 16, "2^16"), + (return $ 2 ^ 19, "2^19"), + (return $ 2 ^ 22, "2^22") + ] + +queueBenchgroup :: Benchmark +queueBenchgroup = benchImpls "Queue enqueue operations" Queue.impls dataSets diff --git a/bench-version-changes/ghc-dps-compact/after/Bench/Compact/SExpr.hs b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/SExpr.hs new file mode 100644 index 00000000..24247602 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/SExpr.hs @@ -0,0 +1,23 @@ +module Bench.Compact.SExpr where + +import Bench.Compact.Utils as Utils +import Compact.SExpr as SExpr +import Control.DeepSeq (force) +import Control.Exception (evaluate) +import qualified Data.ByteString.Char8 as BSC +import Test.Tasty.Bench (Benchmark) + +dataSetDir :: String +dataSetDir = "bench-version-changes/ghc-dps-compact/after/datasets/" + +dataSets :: [(IO BSC.ByteString, String)] +dataSets = + [ (evaluate . force =<< BSC.readFile (dataSetDir ++ "data_2_10.sexpr"), "2^10"), + (evaluate . force =<< BSC.readFile (dataSetDir ++ "data_2_13.sexpr"), "2^13"), + (evaluate . force =<< BSC.readFile (dataSetDir ++ "data_2_16.sexpr"), "2^16"), + (evaluate . force =<< BSC.readFile (dataSetDir ++ "data_2_19.sexpr"), "2^19"), + (evaluate . force =<< BSC.readFile (dataSetDir ++ "data_2_22.sexpr"), "2^22") + ] + +sexprBenchgroup :: Benchmark +sexprBenchgroup = Utils.benchImpls "S-expression parser" SExpr.impls dataSets diff --git a/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Utils.hs b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Utils.hs new file mode 100644 index 00000000..4dfffb63 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/Bench/Compact/Utils.hs @@ -0,0 +1,84 @@ +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE KindSignatures #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# OPTIONS_GHC -Wno-name-shadowing #-} + +module Bench.Compact.Utils where + +import Control.DeepSeq +import Control.Exception (evaluate) +import Data.Functor ((<&>)) +import GHC.Compact (compact, getCompact) +import Test.Tasty (testGroup) +import Test.Tasty.Bench + +-- import qualified Compact.Map as Map +-- import qualified Compact.BFTraversal as BFTraversal +-- import qualified Compact.DList as DList +-- import qualified Compact.Queue as Queue +-- import qualified Compact.SExpr as SExpr + +-- import qualified Bench.Compact.Map as Map +-- import qualified Bench.Compact.BFTraversal as BFTraversal +-- import qualified Bench.Compact.DList as DList +-- import qualified Bench.Compact.Queue as Queue +-- import qualified Bench.Compact.SExpr as SExpr + +benchImpls :: forall m a r. (NFData a, NFData r) => String -> [(a %m -> r, String, Bool)] -> [(IO a, String)] -> Benchmark +benchImpls name impls datasets = do + bgroup + name + ( datasets <&> \(loadSampleData, sizeName) -> env loadSampleData $ \sampleData -> + testGroup sizeName $ + concat $ + impls <&> \(impl, implName, isLazy) -> + if isLazy + then + [ bench (implName ++ ".force") $ (flip whnfAppIO) sampleData $ \sampleData -> evaluate $ force $ impl sampleData, + bench (implName ++ ".copyIntoReg") $ (flip whnfAppIO) sampleData $ \sampleData -> do + resInRegion <- compact $ impl sampleData + evaluate $ getCompact $ resInRegion + ] + else [bench implName $ (flip whnfAppIO) sampleData $ \sampleData -> evaluate $ impl sampleData] + ) + +-- launchImpl :: String -> IO () +-- launchImpl s = +-- let (_all, dotModuleName) = span (/= '.') s +-- (moduleName, dotBenchmark) = span (/= '.') (tail dotModuleName) +-- (_benchmark, dotImplSizeSpec) = span (/= '.') (tail dotBenchmark) +-- implSizeSpec = tail dotImplSizeSpec +-- in case (_all ++ "." ++ moduleName ++ "." ++ _benchmark) of +-- "All.Bench.Compact.Map.benchmark" -> Utils.launchImpl' implSizeSpec Map.impls Map.dataSets +-- "All.Bench.Compact.BFTraversal.benchmark" -> Utils.launchImpl' implSizeSpec BFTraversal.impls BFTraversal.dataSets +-- "All.Bench.Compact.DList.benchmark" -> Utils.launchImpl' implSizeSpec DList.impls DList.dataSets +-- "All.Bench.Compact.Queue.benchmark" -> Utils.launchImpl' implSizeSpec Queue.impls Queue.dataSets +-- "All.Bench.Compact.SExpr.benchmark" -> Utils.launchImpl' implSizeSpec SExpr.impls SExpr.dataSets +-- s' -> error ("benchmark group '" ++ s' ++ "' not found") + +-- launchImpl' :: forall m a r. (NFData r) => String -> [(a %m -> r, String, Bool)] -> [(IO a, String)] -> IO () +-- launchImpl' requestedImplDataSetspec impls datasets = go impls (go' datasets) where +-- (requestedSize, dotRequestedImplSpec) = span (/= '.') requestedImplDataSetspec +-- (requestedImplRadical, requestedImplVariant) = span (/= '.') (tail dotRequestedImplSpec) +-- go [] _ = error ("requested implementation '" ++ requestedImplRadical ++ "' not found") +-- go ((impl, implName, isLazy):_) loadSampleData | implName == requestedImplRadical = do +-- sampleData <- loadSampleData +-- if isLazy +-- then case requestedImplVariant of +-- ".force" -> evaluate $ rwhnf $ force $ impl sampleData +-- ".copyIntoReg" -> do +-- resInRegion <- compact $ impl sampleData +-- evaluate $ rwhnf $ getCompact $ resInRegion +-- _ -> error ("variant '" ++ requestedImplVariant ++ "' not found (required for lazy impl)") +-- else +-- evaluate $ rwhnf $ impl sampleData +-- putStrLn "Done!" +-- go (_:xs) loadSampleData = go xs loadSampleData + +-- go' [] = error ("requested size '" ++ requestedSize ++ "' not found") +-- go' ((loadSampleData, sizeName):_) | sizeName == requestedSize = loadSampleData +-- go' (_:xs) = go' xs diff --git a/bench-version-changes/ghc-dps-compact/after/datasets/data_2_10.sexpr b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_10.sexpr new file mode 100644 index 00000000..da68ee25 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_10.sexpr @@ -0,0 +1,46 @@ +( +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +) \ No newline at end of file diff --git a/bench-version-changes/ghc-dps-compact/after/datasets/data_2_13.sexpr b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_13.sexpr new file mode 100644 index 00000000..284df694 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_13.sexpr @@ -0,0 +1,354 @@ +( +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +) \ No newline at end of file diff --git a/bench-version-changes/ghc-dps-compact/after/datasets/data_2_16.sexpr b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_16.sexpr new file mode 100644 index 00000000..e0155e74 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_16.sexpr @@ -0,0 +1,2774 @@ +( +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +) \ No newline at end of file diff --git a/bench-version-changes/ghc-dps-compact/after/datasets/data_2_19.sexpr b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_19.sexpr new file mode 100644 index 00000000..1af378ae --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_19.sexpr @@ -0,0 +1,22090 @@ +( +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +) \ No newline at end of file diff --git a/bench-version-changes/ghc-dps-compact/after/datasets/data_2_22.sexpr b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_22.sexpr new file mode 100644 index 00000000..bd2f4f24 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/datasets/data_2_22.sexpr @@ -0,0 +1,176772 @@ +( +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + +) \ No newline at end of file diff --git a/bench-version-changes/ghc-dps-compact/after/datasets/sexpr_sample.sexpr b/bench-version-changes/ghc-dps-compact/after/datasets/sexpr_sample.sexpr new file mode 100644 index 00000000..db95e01d --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/after/datasets/sexpr_sample.sexpr @@ -0,0 +1,22 @@ +(ert-deftest company-shows-keywords-alongside-completions-alphabetically () + :tags '(company) + (switch-to-buffer "*TESTING COMPANY MODE ~ Python*") + (python-mode) + + + (erase-buffer) + (insert "\n def first(x): pass") + (insert "\n def fierce(a, b): pass") + + + (insert "\n fi") + (company-manual-begin) + (should (equal company-candidates '("fierce" "first" #("finally" 0 7 (company-backend company-keywords))))) + + + (execute-kbd-macro (kbd "C-g C-/ M-2")) + (should (looking-back "finally")) + + (kill-buffer)) + + diff --git a/bench-version-changes/ghc-dps-compact/before/Bench/Compact.hs b/bench-version-changes/ghc-dps-compact/before/Bench/Compact.hs new file mode 100644 index 00000000..38143860 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/before/Bench/Compact.hs @@ -0,0 +1,9 @@ +module Bench.Compact where + +import Test.Tasty.Bench + +benchmarks :: Benchmark +benchmarks = + bgroup + "DPS interface for compact regions (unsupported in this GHC version)" + [] diff --git a/bench-version-changes/ghc-dps-compact/before/Bench/Compact/BFTraversal.hs b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/BFTraversal.hs new file mode 100644 index 00000000..67db92de --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/BFTraversal.hs @@ -0,0 +1 @@ +module Bench.Compact.BFTraversal () where diff --git a/bench-version-changes/ghc-dps-compact/before/Bench/Compact/DList.hs b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/DList.hs new file mode 100644 index 00000000..1932d0ef --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/DList.hs @@ -0,0 +1 @@ +module Bench.Compact.DList () where diff --git a/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Map.hs b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Map.hs new file mode 100644 index 00000000..e5ee4ed4 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Map.hs @@ -0,0 +1 @@ +module Bench.Compact.Map () where diff --git a/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Queue.hs b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Queue.hs new file mode 100644 index 00000000..e953043c --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Queue.hs @@ -0,0 +1 @@ +module Bench.Compact.Queue () where diff --git a/bench-version-changes/ghc-dps-compact/before/Bench/Compact/SExpr.hs b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/SExpr.hs new file mode 100644 index 00000000..a3449811 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/SExpr.hs @@ -0,0 +1 @@ +module Bench.Compact.SExpr () where diff --git a/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Utils.hs b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Utils.hs new file mode 100644 index 00000000..db7f8246 --- /dev/null +++ b/bench-version-changes/ghc-dps-compact/before/Bench/Compact/Utils.hs @@ -0,0 +1 @@ +module Bench.Compact.Utils () where diff --git a/bench/Data/Mutable/Array.hs b/bench/Bench/Data/Array/Mutable.hs similarity index 99% rename from bench/Data/Mutable/Array.hs rename to bench/Bench/Data/Array/Mutable.hs index 3d1fc557..c98bb165 100644 --- a/bench/Data/Mutable/Array.hs +++ b/bench/Bench/Data/Array/Mutable.hs @@ -11,7 +11,7 @@ -- land in a file named “Array.dump-simpl” -- {-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all -dsuppress-uniques #-} -module Data.Mutable.Array (benchmarks) where +module Bench.Data.Array.Mutable (benchmarks) where import Control.DeepSeq (rnf) import qualified Data.Array.Mutable.Linear as Array.Linear diff --git a/bench/Bench/Data/Array/Mutable/Quicksort.hs b/bench/Bench/Data/Array/Mutable/Quicksort.hs new file mode 100644 index 00000000..87c17854 --- /dev/null +++ b/bench/Bench/Data/Array/Mutable/Quicksort.hs @@ -0,0 +1,40 @@ +{-# LANGUAGE NumericUnderscores #-} + +module Bench.Data.Array.Mutable.Quicksort (benchmarks) where + +import Control.DeepSeq (force) +import Control.Exception (evaluate) +import Data.Array.Mutable.Quicksort (qsortUsingArray, qsortUsingList) +import Data.List (sort) +import System.Random +import Test.Tasty.Bench + +-- Follows thread from https://discourse.haskell.org/t/linear-haskell-quicksort-performance/10280 + +gen :: StdGen +gen = mkStdGen 4541645642 + +randomListBuilder :: Int -> IO [Int] +randomListBuilder size = evaluate $ force $ take size (randoms gen :: [Int]) + +sizes :: [Int] +sizes = [1_000, 50_000, 1_000_000] + +benchmarks :: Benchmark +benchmarks = + bgroup + "quicksort" + ( ( \size -> + env (randomListBuilder size) $ \randomList -> + bgroup + ("size " ++ (show size)) + [ bench "qsortUsingArray" $ + nf qsortUsingArray randomList, + bench "qsortUsingList" $ + nf qsortUsingList randomList, + bench "sortStdLib" $ + nf sort randomList + ] + ) + <$> sizes + ) diff --git a/bench/Data/Mutable/HashMap.hs b/bench/Bench/Data/HashMap/Mutable.hs similarity index 99% rename from bench/Data/Mutable/HashMap.hs rename to bench/Bench/Data/HashMap/Mutable.hs index b3e914b4..7a99985d 100644 --- a/bench/Data/Mutable/HashMap.hs +++ b/bench/Bench/Data/HashMap/Mutable.hs @@ -11,7 +11,7 @@ {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE TupleSections #-} -module Data.Mutable.HashMap (benchmarks) where +module Bench.Data.HashMap.Mutable (benchmarks) where import Control.DeepSeq (NFData (..), deepseq, force) import qualified Control.Monad.Random as Random diff --git a/bench/Main.hs b/bench/Main.hs index 67c33362..3f526f69 100644 --- a/bench/Main.hs +++ b/bench/Main.hs @@ -1,12 +1,16 @@ module Main where -import qualified Data.Mutable.Array as Array -import qualified Data.Mutable.HashMap as HashMap +import qualified Bench.Compact as Compact +import qualified Bench.Data.Array.Mutable as Array +import qualified Bench.Data.Array.Mutable.Quicksort as Quicksort +import qualified Bench.Data.HashMap.Mutable as HashMap import Test.Tasty.Bench (defaultMain) main :: IO () main = do defaultMain [ Array.benchmarks, - HashMap.benchmarks + Quicksort.benchmarks, + HashMap.benchmarks, + Compact.benchmarks ] diff --git a/cabal.project b/cabal.project index 0d7f076e..615a378f 100644 --- a/cabal.project +++ b/cabal.project @@ -1 +1,5 @@ packages: *.cabal +tests: True +benchmarks: True +allow-newer: all +index-state: 2024-09-13T13:31:57Z diff --git a/examples-version-changes/ghc-dps-compact/after/Compact/BFTraversal.hs b/examples-version-changes/ghc-dps-compact/after/Compact/BFTraversal.hs new file mode 100644 index 00000000..6d355d2d --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/after/Compact/BFTraversal.hs @@ -0,0 +1,118 @@ +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE BangPatterns #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE DeriveAnyClass #-} +{-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE GADTs #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE KindSignatures #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE PatternSynonyms #-} +{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeAbstractions #-} +{-# LANGUAGE TypeApplications #-} +{-# LANGUAGE UnicodeSyntax #-} +{-# LANGUAGE NoImplicitPrelude #-} +{-# OPTIONS_GHC -Wno-name-shadowing #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} + +module Compact.BFTraversal where + +import Compact.Destination +import Compact.Queue hiding (impls) +import Control.DeepSeq (NFData) +import Control.Functor.Linear ((<&>)) +import Control.Monad.State.Lazy (runState, state) +import GHC.Generics +import Prelude.Linear +import Prelude (Applicative, Functor, fmap, pure, (<*>)) +import qualified Prelude as NonLin + +data BinTree a where + Nil :: BinTree a + Node :: a %1 -> (BinTree a) %1 -> (BinTree a) %1 -> BinTree a + deriving (NonLin.Eq, Generic, NonLin.Show, NFData) + +pattern Leaf :: forall {a}. a -> BinTree a +pattern Leaf x = Node x Nil Nil + +-- From "Phases in Software Architecture", Gibbons & al. 2023 +-------------------------------------------------------------------------------- + +(⊗) :: (Applicative m) => m a -> m b -> m (a, b) +xs ⊗ ys = pure (,) <*> xs <*> ys + +data Phases m a where + Pure :: a -> Phases m a + Link :: (a -> b -> c) -> m a -> Phases m b -> Phases m c + +instance Functor (Phases m) where + fmap f (Pure x) = Pure (f x) + fmap f (Link g mx my) = Link (\x y -> f (g x y)) mx my + +instance (Applicative m) => Applicative (Phases m) where + pure x = Pure x + Pure f <*> xs = NonLin.fmap f xs + fs <*> Pure x = NonLin.fmap (\f -> f x) fs + Link f xs ys <*> Link g zs ws = Link h (xs ⊗ zs) (ys ⊗ ws) where h (x, z) (y, w) = (f x y) (g z w) + +now :: (Applicative m) => m a -> Phases m a +now xs = Link (curry fst) xs (Pure ()) + +later :: (Applicative m) => Phases m a -> Phases m a +later xs = Link (curry snd) (pure ()) xs + +phase :: (Applicative m) => Int -> m a -> Phases m a +phase 1 = now +phase i = later NonLin.. phase (i - 1) + +runPhases :: (Applicative m) => Phases m a -> m a +runPhases (Pure x) = pure x +runPhases (Link f xs ys) = pure f <*> xs <*> runPhases ys + +bft' :: (Applicative m) => (a -> m b) -> BinTree a -> Phases m (BinTree b) +bft' _ Nil = pure Nil +bft' f (Node x tl tr) = pure Node <*> now (f x) <*> later ((bft' f) tl) <*> later ((bft' f) tr) + +mapPhasesBFS :: (Applicative m) => (a -> m b) -> BinTree a -> m (BinTree b) +mapPhasesBFS f = runPhases NonLin.. bft' f + +-------------------------------------------------------------------------------- + +mapAccumBFS :: forall a b s. (s -> a -> (s, b)) -> s -> BinTree a -> (BinTree b, s) +mapAccumBFS f s0 tree = + unur + ( withRegion + ( \ @r token -> + fromIncomplete $ + alloc @r token + <&> \dtree -> go s0 (singletonN (Ur tree, dtree)) + ) + ) + where + go :: forall r. (Region r) => s -> NaiveQueue (Ur (BinTree a), Dest r (BinTree b)) %1 -> Ur s + go s q = case dequeueN q of + Nothing -> Ur s + Just ((utree, dtree), q') -> case utree of + Ur Nil -> dtree & fill @'Nil `lseq` go s q' + Ur (Node x tl tr) -> case dtree & fill @'Node of + (dr, dtl, dtr) -> + let q'' = q' `enqueueN` (Ur tl, dtl) `enqueueN` (Ur tr, dtr) + (s', r) = f s x + in dr & fillLeaf r `lseq` go s' q'' + +-------------------------------------------------------------------------------- + +dpsRelabel :: BinTree () -> (BinTree Int, Int) +dpsRelabel base = mapAccumBFS (\s _ -> (s + 1, s)) 0 base + +phasesRelabel :: BinTree () -> (BinTree Int, Int) +phasesRelabel base = runState (mapPhasesBFS (\_ -> state (\s -> (s, s + 1))) base) 0 + +impls :: [(BinTree () -> (BinTree Int, Int), String, Bool)] +impls = + [ (dpsRelabel, "dpsRelabel", False), + (phasesRelabel, "phasesRelabel", True) + ] diff --git a/examples-version-changes/ghc-dps-compact/after/Compact/DList.hs b/examples-version-changes/ghc-dps-compact/after/Compact/DList.hs new file mode 100644 index 00000000..9ea1d651 --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/after/Compact/DList.hs @@ -0,0 +1,106 @@ +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE BangPatterns #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE KindSignatures #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeAbstractions #-} +{-# LANGUAGE TypeApplications #-} +{-# LANGUAGE NoImplicitPrelude #-} +{-# OPTIONS_GHC -Wno-name-shadowing -Wno-type-defaults #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} + +module Compact.DList where + +import Compact.Destination +import Control.Functor.Linear ((<&>)) +import Prelude.Linear hiding (concat, foldl', foldr) + +newtype DList r a = DList (Incomplete r [a] (Dest r [a])) + +new :: forall r a. (Region r) => Token %1 -> DList r a +new token = DList (alloc @r token) + +append :: forall r a. (Region r) => DList r a %1 -> a -> DList r a +append (DList i) x = + DList $ + i <&> \dl -> case dl & fill @'(:) of + (dh, dt) -> dh & fillLeaf x `lseq` dt + +concat :: forall r a. (Region r) => DList r a %1 -> DList r a %1 -> DList r a +concat (DList i1) (DList i2) = DList $ i1 <&> \dl -> dl & fillComp i2 + +toList :: forall r a. (Region r) => DList r a %1 -> [a] +toList (DList i) = unur $ fromIncomplete_ $ i <&> \dl -> dl & fill @'[] + +toUList :: forall r a. (Region r) => DList r a %1 -> Ur [a] +toUList (DList i) = fromIncomplete_ $ i <&> \dl -> dl & fill @'[] + +fromList :: forall r a. (Region r) => Token %1 -> [a] -> DList r a +fromList token l = DList (alloc @r token <&> \d -> go d l) + where + go dl [] = dl + go dl (x : xs) = case dl & fill @'(:) of (dh, dt) -> dh & fillLeaf x `lseq` go dt xs + +newtype DListN a = DListN ([a] %1 -> [a]) + +newN :: forall a. DListN a +newN = DListN (\ys -> ys) + +appendN :: forall a. DListN a %1 -> a %1 -> DListN a +appendN (DListN f) x = + DListN $ \ys -> f ([x] ++ ys) + +concatN :: forall a. DListN a %1 -> DListN a %1 -> DListN a +concatN (DListN f1) (DListN f2) = DListN $ f1 . f2 + +toListN :: forall a. DListN a %1 -> [a] +toListN (DListN f) = f [] + +fromListN :: forall a. [a] %1 -> DListN a +fromListN xs = DListN $ \ys -> xs ++ ys + +------------------------------------------------------------------------------- + +impls :: [([[Int]] -> [Int], String, Bool)] +impls = + [ (concatRight, "concatRight", True), + (differenceListNaiveLeft, "differenceListNaiveLeft", True), + (differenceListDestLeft, "differenceListDestLeft", False) + ] + +foldl' :: forall a b. (a %1 -> b -> a) -> a %1 -> [b] -> a +foldl' _ s [] = s +foldl' f s (x : xs) = let !r = (f s x) in foldl' f r xs + +foldr :: forall a b. (b -> a %1 -> a) -> a %1 -> [b] -> a +foldr _ s [] = s +foldr f s (x : xs) = x `f` foldr f s xs + +concatLeft :: [[a]] -> [a] +concatLeft = foldl' (\xs ys -> xs ++ ys) [] + +concatRight :: [[a]] -> [a] +concatRight = foldr (\xs ys -> xs ++ ys) [] + +differenceListNaiveLeft :: [[a]] -> [a] +differenceListNaiveLeft lists = toListN (foldl' (\dl ys -> let !r = dl `concatN` (fromListN ys) in r) newN lists) + +differenceListDestLeft :: [[a]] -> [a] +differenceListDestLeft lists = + unur + ( withRegion + ( \ @r t -> + let f :: (Token, DList r a) %1 -> [a] -> (Token, DList r a) + f (t, dl) ys = + let !(t', t'') = dup2 t + !r = dl `concat` (fromList @r t' ys) + in (t'', r) + !(t', t'') = dup2 t + !(t''', dl) = foldl' f (t'', new @r t') lists + in consume t''' `lseq` toUList dl + ) + ) diff --git a/examples-version-changes/ghc-dps-compact/after/Compact/Map.hs b/examples-version-changes/ghc-dps-compact/after/Compact/Map.hs new file mode 100644 index 00000000..48a0ead2 --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/after/Compact/Map.hs @@ -0,0 +1,153 @@ +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE BangPatterns #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE KindSignatures #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TupleSections #-} +{-# LANGUAGE TypeAbstractions #-} +{-# LANGUAGE TypeApplications #-} +{-# LANGUAGE NoImplicitPrelude #-} +{-# OPTIONS_GHC -Wno-name-shadowing -Wno-type-defaults #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} + +module Compact.Map where + +import Compact.Destination +import Control.Functor.Linear ((<&>)) +import Data.Kind (Type) +import Prelude.Linear + +mapL :: forall a b. (a %1 -> b) -> [a] -> [b] +mapL _ [] = [] +mapL f (x : xs) = (f x) : (mapL f xs) + +mapS :: forall a b. (a %1 -> b) -> [a] -> [b] +mapS _ [] = [] +mapS f (x : xs) = + let !r = f x + !tail = mapS f xs + in r : tail + +mapSH :: forall a b. (a %1 -> b) -> [a] -> [b] +mapSH _ [] = [] +mapSH f (x : xs) = + let !r = f x + in r : (mapSH f xs) + +mapST :: forall a b. (a %1 -> b) -> [a] -> [b] +mapST _ [] = [] +mapST f (x : xs) = + let !tail = mapST f xs + in (f x) : tail + +mapTRL :: forall a b. (a %1 -> b) -> [a] -> [b] +mapTRL f = go [] + where + go acc [] = reverse acc + go acc (x : xs) = go ((f x) : acc) xs + +mapTRS :: forall a b. (a %1 -> b) -> [a] -> [b] +mapTRS f = go [] + where + go acc [] = reverse acc + go acc (x : xs) = + let !r = f x + !cons = r : acc + in go cons xs + +mapTRSH :: forall a b. (a %1 -> b) -> [a] -> [b] +mapTRSH f = go [] + where + go acc [] = reverse acc + go acc (x : xs) = + let !r = f x + in go (r : acc) xs + +mapTRST :: forall a b. (a %1 -> b) -> [a] -> [b] +mapTRST f = go [] + where + go acc [] = reverse acc + go acc (x : xs) = + let !cons = (f x) : acc + in go cons xs + +mapDestTRL :: forall (r :: Type) a b. (Region r) => (a %1 -> b) -> [a] -> Dest r [b] %1 -> () +mapDestTRL _ [] dl = dl & fill @'[] +mapDestTRL f (x : xs) dl = case dl & fill @'(:) of + (dh, dt) -> dh & fillLeaf (f x) `lseq` mapDestTRL f xs dt + +mapDestTRS :: forall (r :: Type) a b. (Region r) => (a %1 -> b) -> [a] -> Dest r [b] %1 -> () +mapDestTRS _ [] dl = dl & fill @'[] +mapDestTRS f (x : xs) dl = case dl & fill @'(:) of + (dh, dt) -> let !r = f x in dh & fillLeaf r `lseq` mapDestTRS f xs dt + +mapDestFL :: forall (r :: Type) a b. (Region r) => (a %1 -> b) -> [a] -> Dest r [b] %1 -> () +mapDestFL f l dl = + (foldl_ fillConsF dl l) & fill @'[] + where + fillConsF :: Dest r [b] %1 -> a -> Dest r [b] + fillConsF dl x = case dl & fill @'(:) of + (dh, dt) -> dh & fillLeaf (f x) `lseq` dt + foldl_ :: forall a b. (a %1 -> b -> a) -> a %1 -> [b] -> a + foldl_ _ s [] = s + foldl_ f s (x : xs) = foldl_ f (f s x) xs + +mapDestFSL :: forall (r :: Type) a b. (Region r) => (a %1 -> b) -> [a] -> Dest r [b] %1 -> () +mapDestFSL f l dl = + (foldl_ fillConsF dl l) & fill @'[] + where + fillConsF dl x = case dl & fill @'(:) of + (dh, dt) -> dh & fillLeaf (f x) `lseq` dt + foldl_ :: forall a b. (a %1 -> b -> a) -> a %1 -> [b] -> a + foldl_ _ s [] = s + foldl_ f s (x : xs) = let !r = (f s x) in foldl_ f r xs + +mapDestFLS :: forall (r :: Type) a b. (Region r) => (a %1 -> b) -> [a] -> Dest r [b] %1 -> () +mapDestFLS f l dl = + (foldl_ fillConsF dl l) & fill @'[] + where + fillConsF dl x = case dl & fill @'(:) of + (dh, dt) -> let !r = f x in dh & fillLeaf r `lseq` dt + foldl_ :: forall a b. (a %1 -> b -> a) -> a %1 -> [b] -> a + foldl_ _ s [] = s + foldl_ f s (x : xs) = foldl_ f (f s x) xs + +mapDestFS :: forall (r :: Type) a b. (Region r) => (a %1 -> b) -> [a] -> Dest r [b] %1 -> () +mapDestFS f l dl = + (foldl_ fillConsF dl l) & fill @'[] + where + fillConsF dl x = case dl & fill @'(:) of + (dh, dt) -> let !r = f x in dh & fillLeaf r `lseq` dt + foldl_ :: forall a b. (a %1 -> b -> a) -> a %1 -> [b] -> a + foldl_ _ s [] = s + foldl_ f s (x : xs) = let !r = (f s x) in foldl_ f r xs + +------------------------------------------------------------------------------- + +dpsWrapper :: (forall (r :: Type) a b. (Region r) => (a %1 -> b) -> [a] -> Dest r [b] %1 -> ()) -> (Int %1 -> Int) -> [Int] -> [Int] +dpsWrapper impl f l = unur (withRegion (\ @r t -> fromIncomplete_ (alloc @r t <&> \d -> impl f l d))) + +impls' :: (Int %1 -> Int) -> [([Int] -> [Int], String, Bool)] +impls' f = + [ (mapL f, "mapL", True), + (mapS f, "mapS", True), + (mapSH f, "mapSH", True), + (mapST f, "mapST", True), + (mapTRL f, "mapTRL", True), + (mapTRS f, "mapTRS", True), + (mapTRSH f, "mapTRSH", True), + (mapTRST f, "mapTRST", True), + (dpsWrapper mapDestTRL f, "mapDestTRL", False), + (dpsWrapper mapDestTRS f, "mapDestTRS", False), + (dpsWrapper mapDestFL f, "mapDestFL", False), + (dpsWrapper mapDestFLS f, "mapDestFLS", False), + (dpsWrapper mapDestFSL f, "mapDestFSL", False), + (dpsWrapper mapDestFS f, "mapDestFS", False) + ] + +impls :: [([Int] -> [Int], String, Bool)] +impls = impls' (\x -> 2 * x + 1) diff --git a/examples-version-changes/ghc-dps-compact/after/Compact/Queue.hs b/examples-version-changes/ghc-dps-compact/after/Compact/Queue.hs new file mode 100644 index 00000000..aa1d5b9c --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/after/Compact/Queue.hs @@ -0,0 +1,134 @@ +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE BangPatterns #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE KindSignatures #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeAbstractions #-} +{-# LANGUAGE TypeApplications #-} +{-# LANGUAGE NoImplicitPrelude #-} +{-# OPTIONS_GHC -Wno-name-shadowing -Wno-type-defaults #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} + +module Compact.Queue where + +import Compact.DList +import qualified Compact.DList as DList +import Compact.Destination +import Data.Word +import Prelude.Linear hiding ((*), (+), (<)) +import Prelude ((*), (+), (<)) + +data NaiveQueue a = NaiveQueue [a] [a] + +newN :: NaiveQueue a +newN = NaiveQueue [] [] + +singletonN :: a %1 -> NaiveQueue a +singletonN x = NaiveQueue [x] [] + +toListN :: NaiveQueue a %1 -> [a] +toListN (NaiveQueue l r) = l ++ reverse r + +enqueueN :: NaiveQueue a %1 -> a %1 -> NaiveQueue a +enqueueN (NaiveQueue l r) x = NaiveQueue l (x : r) + +dequeueN :: NaiveQueue a %1 -> Maybe (a, NaiveQueue a) +dequeueN (NaiveQueue l r) = case l of + [] -> case reverse r of + [] -> Nothing + (x : xs) -> Just (x, NaiveQueue xs []) + (x : xs) -> Just (x, NaiveQueue xs r) + +data QueueF a = QueueF [a] (DListN a) + +newF :: forall a. QueueF a +newF = QueueF [] DList.newN + +singletonF :: forall a. a %1 -> QueueF a +singletonF x = QueueF [x] DList.newN + +toListF :: forall a. QueueF a %1 -> [a] +toListF (QueueF l dl) = l ++ DList.toListN dl + +enqueueF :: forall a. QueueF a %1 -> a %1 -> QueueF a +enqueueF (QueueF l dl) x = QueueF l (DList.appendN dl x) + +dequeueF :: forall a. QueueF a %1 -> Maybe (a, QueueF a) +dequeueF (QueueF l dl) = case l of + [] -> case DList.toListN dl of + [] -> Nothing + (x : xs) -> Just (x, QueueF xs DList.newN) + (x : xs) -> Just (x, QueueF xs dl) + +data Queue r a = Queue [a] (DList r a) + +new :: forall r a. (Region r) => Token %1 -> Queue r a +new token = Queue [] (DList.new @r token) + +singleton :: forall r a. (Region r) => Token %1 -> a -> Queue r a +singleton token x = Queue [x] (DList.new @r token) + +toList :: forall r a. (Region r) => Queue r a %1 -> [a] +toList (Queue l dl) = l ++ DList.toList dl + +enqueue :: forall r a. (Region r) => Queue r a %1 -> a -> Queue r a +enqueue (Queue l dl) x = Queue l (DList.append dl x) + +dequeue :: forall r a. (Region r) => Queue r a %1 -> Maybe (a, Queue r a) +dequeue (Queue l (DList i)) = case l of + [] -> + let !(i', token) = piggyback i + in case DList.toList (DList i') of + [] -> consume token `lseq` Nothing + (x : xs) -> Just (x, Queue xs (DList.new @r token)) + (x : xs) -> Just (x, Queue xs (DList i)) + +------------------------------------------------------------------------------- + +naiveImpl :: Word64 -> Word64 +naiveImpl limit = go 0 (singletonN 1) + where + go sum q = case dequeueN q of + Nothing -> sum + Just (x, q') -> go (sum + x) q'' + where + q'' = + if x < limit + then q' `enqueueN` (2 * x) `enqueueN` (2 * x + 1) + else q' + +funcImpl :: Word64 -> Word64 +funcImpl limit = go 0 (singletonF 1) + where + go sum q = case dequeueF q of + Nothing -> sum + Just (x, q') -> go (sum + x) q'' + where + q'' = + if x < limit + then q' `enqueueF` (2 * x) `enqueueF` (2 * x + 1) + else q' + +destImpl :: Word64 -> Word64 +destImpl limit = unur (withRegion (\ @r t -> let r = go 0 (singleton @r t (Ur 1)) in move r)) + where + go :: (Region r) => Word64 -> Queue r (Ur Word64) %1 -> Word64 + go sum q = case dequeue q of + Nothing -> sum + Just (Ur x, q') -> go (sum + x) q'' + where + q'' = + if x < limit + then q' `enqueue` Ur (2 * x) `enqueue` Ur (2 * x + 1) + else q' + +impls :: [(Word64 -> Word64, String, Bool)] +impls = + [ (naiveImpl, "naiveImpl", False), + (funcImpl, "funcImpl", False), + (destImpl, "destImpl", False) + ] diff --git a/examples-version-changes/ghc-dps-compact/after/Compact/SExpr.hs b/examples-version-changes/ghc-dps-compact/after/Compact/SExpr.hs new file mode 100644 index 00000000..fbc6c171 --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/after/Compact/SExpr.hs @@ -0,0 +1,234 @@ +{-# LANGUAGE BangPatterns #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE DeriveAnyClass #-} +{-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE LambdaCase #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE MultiWayIf #-} +{-# LANGUAGE PatternGuards #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeAbstractions #-} +{-# LANGUAGE TypeApplications #-} +{-# LANGUAGE NoImplicitPrelude #-} +{-# OPTIONS_GHC -Wno-name-shadowing #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} + +module Compact.SExpr where + +import Compact.Destination +import Control.DeepSeq (NFData) +import Control.Functor.Linear ((<&>)) +import Data.ByteString.Char8 (ByteString) +import qualified Data.ByteString.Char8 as BSC +import Data.Char (isSpace) +import GHC.Generics (Generic) +import Prelude.Linear +import qualified Prelude as NonLinear + +data SExpr + = SList Int [SExpr] + | SInteger Int Int + | SString Int String + | SSymbol Int String + deriving (NonLinear.Eq, Generic, NFData) + +{-# INLINE endPos #-} +endPos :: SExpr -> Int +endPos = \case + SList n _ -> n + SInteger n _ -> n + SString n _ -> n + SSymbol n _ -> n + +showSExpr :: Bool -> Int -> SExpr -> String +showSExpr cont indent = \case + SList _ [] -> makeIndent cont indent ++ "()" + SList _ (x : xs) -> + makeIndent cont indent + ++ "(" + ++ showSExpr True (indent + 1) x + ++ NonLinear.concatMap (\x' -> "\n" ++ showSExpr False (indent + 1) x') xs + ++ ")" + SInteger _ i -> makeIndent cont indent ++ show i + SString _ s -> makeIndent cont indent ++ show s + SSymbol _ s -> makeIndent cont indent ++ s + where + makeIndent isCont n = if isCont then "" else replicate n ' ' + +instance Show SExpr where + show x = showSExpr False 0 x + +data SExprParseError + = UnexpectedClosingParen Int + | UnexpectedEOFSExpr Int + | UnexpectedEOFSList Int + | UnexpectedEOFSString Int + | UnexpectedContentAfter Int + deriving (NonLinear.Eq, Generic, NFData) + +errEndPos :: SExprParseError -> Int +errEndPos = \case + UnexpectedClosingParen n -> n + UnexpectedEOFSExpr n -> n + UnexpectedEOFSList n -> n + UnexpectedEOFSString n -> n + UnexpectedContentAfter n -> n + +instance Consumable SExprParseError where + consume = \case + UnexpectedClosingParen n -> consume n + UnexpectedEOFSExpr n -> consume n + UnexpectedEOFSList n -> consume n + UnexpectedEOFSString n -> consume n + UnexpectedContentAfter n -> consume n + +instance Dupable SExprParseError where + dup2 = \case + UnexpectedClosingParen n -> let !(n1, n2) = dup2 n in (UnexpectedClosingParen n1, UnexpectedClosingParen n2) + UnexpectedEOFSExpr n -> let !(n1, n2) = dup2 n in (UnexpectedEOFSExpr n1, UnexpectedEOFSExpr n2) + UnexpectedEOFSList n -> let !(n1, n2) = dup2 n in (UnexpectedEOFSList n1, UnexpectedEOFSList n2) + UnexpectedEOFSString n -> let !(n1, n2) = dup2 n in (UnexpectedEOFSString n1, UnexpectedEOFSString n2) + UnexpectedContentAfter n -> let !(n1, n2) = dup2 n in (UnexpectedContentAfter n1, UnexpectedContentAfter n2) + +instance Movable SExprParseError where + move = \case + UnexpectedClosingParen n -> let !(Ur n') = move n in Ur (UnexpectedClosingParen n') + UnexpectedEOFSExpr n -> let !(Ur n') = move n in Ur (UnexpectedEOFSExpr n') + UnexpectedEOFSList n -> let !(Ur n') = move n in Ur (UnexpectedEOFSList n') + UnexpectedEOFSString n -> let !(Ur n') = move n in Ur (UnexpectedEOFSString n') + UnexpectedContentAfter n -> let !(Ur n') = move n in Ur (UnexpectedContentAfter n') + +instance Show SExprParseError where + show = \case + UnexpectedClosingParen n -> "Parse error: Encountered an unexpected closing parentheses at position " ++ show n + UnexpectedEOFSExpr n -> "Parse error: Ecountered EOF while expecting an SExpr at position " ++ show n + UnexpectedEOFSList n -> "Parse error: Encountered EOF in the middle of parsing an SList at position " ++ show n + UnexpectedEOFSString n -> "Parse error: Encountered EOF in the middle of parsing a quoted string at position " ++ show n + UnexpectedContentAfter n -> "Parse error: Encountered unexpected content after the SExpr at position " ++ show n + +defaultSExpr :: SExpr +defaultSExpr = SInteger (-1) 0 + +extractNextToken :: ByteString -> Int -> ByteString +extractNextToken bs i = fst $ BSC.span (\c -> not (isSpace c) && c /= '(' && c /= ')' && c /= '"') (snd $ BSC.splitAt i bs) + +parseStringWithoutDest' :: ByteString -> Int -> Bool -> [Char] -> Either SExprParseError SExpr +parseStringWithoutDest' bs i escape acc = case bs BSC.!? i of + Nothing -> Left $ UnexpectedEOFSString i + Just c -> case c of + '"' | not escape -> Right $ SString i (reverse acc) + '\\' | not escape -> parseStringWithoutDest' bs (i + 1) True acc + 'n' | escape -> parseStringWithoutDest' bs (i + 1) False ('\n' : acc) + _ -> parseStringWithoutDest' bs (i + 1) False (c : acc) + +parseStringWithDest' :: (Region r) => ByteString -> Int -> Bool -> Dest r Int %1 -> Dest r [Char] %1 -> Either SExprParseError Int +parseStringWithDest' bs i escape dEndPos d = case bs BSC.!? i of + Nothing -> dEndPos & fillLeaf (-1) `lseq` d & fill @'[] `lseq` Left $ UnexpectedEOFSString i + Just c -> case c of + '"' | not escape -> dEndPos & fillLeaf i `lseq` d & fill @'[] `lseq` Right i + '\\' | not escape -> parseStringWithDest' bs (i + 1) True dEndPos d + 'n' | escape -> let !(dh, dt) = d & fill @'(:) in dh & fillLeaf '\n' `lseq` parseStringWithDest' bs (i + 1) False dEndPos dt + _ -> let !(dh, dt) = d & fill @'(:) in dh & fillLeaf c `lseq` parseStringWithDest' bs (i + 1) False dEndPos dt + +parseListWithoutDest' :: ByteString -> Int -> [SExpr] -> Either SExprParseError SExpr +parseListWithoutDest' bs i acc = case bs BSC.!? i of + Nothing -> Left $ UnexpectedEOFSList i + Just c -> + if + | c == ')' -> Right $ SList i (reverse acc) + -- we need this case for final spaces before the closing paren + -- parseWithoutDest' know how to handle leading spaces, but will expect a token after, whereas this case allows for trailing spaces + | isSpace c -> parseListWithoutDest' bs (i + 1) acc + | otherwise -> case parseWithoutDest' bs i of + Left err -> Left err + Right children -> parseListWithoutDest' bs (endPos children + 1) (children : acc) + +parseListWithDest' :: (Region r) => ByteString -> Int -> Dest r Int %1 -> Dest r [SExpr] %1 -> Either SExprParseError Int +parseListWithDest' bs i dEndPos d = case bs BSC.!? i of + Nothing -> dEndPos & fillLeaf (-1) `lseq` d & fill @'[] `lseq` Left $ UnexpectedEOFSList i + Just c -> + if + | c == ')' -> dEndPos & fillLeaf i `lseq` d & fill @'[] `lseq` Right i + -- we need this case for final spaces before the closing paren + -- parseWithoutDest' know how to handle leading spaces, but will expect a token after, whereas this case allows for trailing spaces + | isSpace c -> parseListWithDest' bs (i + 1) dEndPos d + | otherwise -> + let !(dh, dt) = d & fill @'(:) + in case parseWithDest' bs i dh of + Left err -> dEndPos & fillLeaf (-1) `lseq` dt & fill @'[] `lseq` Left err + Right childrenEndPos -> parseListWithDest' bs (childrenEndPos + 1) dEndPos dt + +parseWithoutDest' :: ByteString -> Int -> Either SExprParseError SExpr +parseWithoutDest' bs i = case bs BSC.!? i of + Nothing -> Left $ UnexpectedEOFSExpr i + Just c -> case c of + ')' -> Left $ UnexpectedClosingParen i + '(' -> parseListWithoutDest' bs (i + 1) [] + '"' -> parseStringWithoutDest' bs (i + 1) False [] + _ -> + let token = extractNextToken bs i + in if BSC.null token + then -- c is a (leading) space because we matched against the other cases before + parseWithoutDest' bs (i + 1) + else case BSC.readInt token of + Just (int, remaining) | BSC.null remaining -> Right $ SInteger (i + BSC.length token - 1) int + _ -> Right $ SSymbol (i + BSC.length token - 1) (BSC.unpack token) + +parseWithDest' :: (Region r) => ByteString -> Int -> Dest r SExpr %1 -> Either SExprParseError Int +parseWithDest' bs i d = case bs BSC.!? i of + Nothing -> d & fillLeaf defaultSExpr `lseq` Left $ UnexpectedEOFSExpr i + Just c -> case c of + ')' -> d & fillLeaf defaultSExpr `lseq` Left $ UnexpectedClosingParen i + '(' -> let !(dEndPos, dList) = d & fill @'SList in parseListWithDest' bs (i + 1) dEndPos dList + '"' -> let !(dEndPos, dStr) = d & fill @'SString in parseStringWithDest' bs (i + 1) False dEndPos dStr + _ -> + let token = extractNextToken bs i + in if BSC.null token + then -- c is a (leading) space because we matched against the other cases before + parseWithDest' bs (i + 1) d + else case BSC.readInt token of + Just (int, remaining) + | BSC.null remaining -> + let !(dEndPos, dInt) = d & fill @'SInteger + endPos = i + BSC.length token - 1 + in dEndPos & fillLeaf endPos `lseq` dInt & fillLeaf int `lseq` Right endPos + _ -> + let !(dEndPos, dSym) = d & fill @'SSymbol + endPos = i + BSC.length token - 1 + in dEndPos & fillLeaf endPos `lseq` dSym & fillLeaf (BSC.unpack token) `lseq` Right endPos + +parseWithoutDest :: ByteString -> Either SExprParseError SExpr +parseWithoutDest bs = case parseWithoutDest' bs 0 of + Left err -> Left err + Right sexpr -> + let i = endPos sexpr + in if + | i >= BSC.length bs - 1 -> Right sexpr + | rem <- snd (BSC.splitAt (i + 1) bs), BSC.all isSpace rem -> Right sexpr + | otherwise -> Left $ UnexpectedContentAfter (i + 1) + +parseWithDest :: ByteString -> Either SExprParseError SExpr +parseWithDest bs = + let Ur (sexpr, res) = + withRegion + ( \ @r token -> + fromIncomplete $ + alloc @r token + <&> \d -> + move $ parseWithDest' bs 0 d + ) + in case res of + Left err -> Left err + Right i -> + if + | i >= BSC.length bs - 1 -> Right sexpr + | rem <- snd (BSC.splitAt (i + 1) bs), BSC.all isSpace rem -> Right sexpr + | otherwise -> Left $ UnexpectedContentAfter (i + 1) + +impls :: [(ByteString -> Either SExprParseError SExpr, String, Bool)] +impls = + [ (parseWithoutDest, "parseWithoutDest", True), + (parseWithDest, "parseWithDest", False) + ] diff --git a/examples-version-changes/ghc-dps-compact/before/Compact/BFTraversal.hs b/examples-version-changes/ghc-dps-compact/before/Compact/BFTraversal.hs new file mode 100644 index 00000000..59567e3d --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/before/Compact/BFTraversal.hs @@ -0,0 +1 @@ +module Compact.BFTraversal () where diff --git a/examples-version-changes/ghc-dps-compact/before/Compact/DList.hs b/examples-version-changes/ghc-dps-compact/before/Compact/DList.hs new file mode 100644 index 00000000..414b5ba2 --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/before/Compact/DList.hs @@ -0,0 +1 @@ +module Compact.DList () where diff --git a/examples-version-changes/ghc-dps-compact/before/Compact/Map.hs b/examples-version-changes/ghc-dps-compact/before/Compact/Map.hs new file mode 100644 index 00000000..6d7ef01d --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/before/Compact/Map.hs @@ -0,0 +1 @@ +module Compact.Map () where diff --git a/examples-version-changes/ghc-dps-compact/before/Compact/Queue.hs b/examples-version-changes/ghc-dps-compact/before/Compact/Queue.hs new file mode 100644 index 00000000..d9dcf8d0 --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/before/Compact/Queue.hs @@ -0,0 +1 @@ +module Compact.Queue () where diff --git a/examples-version-changes/ghc-dps-compact/before/Compact/SExpr.hs b/examples-version-changes/ghc-dps-compact/before/Compact/SExpr.hs new file mode 100644 index 00000000..f81ea50e --- /dev/null +++ b/examples-version-changes/ghc-dps-compact/before/Compact/SExpr.hs @@ -0,0 +1 @@ +module Compact.SExpr () where diff --git a/examples/Simple/Quicksort.hs b/examples/Data/Array/Mutable/Quicksort.hs similarity index 53% rename from examples/Simple/Quicksort.hs rename to examples/Data/Array/Mutable/Quicksort.hs index 904e5ea1..933fd729 100644 --- a/examples/Simple/Quicksort.hs +++ b/examples/Data/Array/Mutable/Quicksort.hs @@ -1,8 +1,12 @@ {-# LANGUAGE LinearTypes #-} {-# LANGUAGE NoImplicitPrelude #-} +-- Uncomment the line below to observe the generated (optimised) Core. It will +-- land in a file named “Quicksort.dump-simpl” +-- {-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all -dsuppress-uniques #-} + -- | This module implements quicksort with mutable arrays from linear-base -module Simple.Quicksort where +module Data.Array.Mutable.Quicksort where import Data.Array.Mutable.Linear (Array) import qualified Data.Array.Mutable.Linear as Array @@ -13,15 +17,22 @@ import Prelude.Linear hiding (partition) -- # Quicksort ------------------------------------------------------------------------------- -quickSort :: [Int] -> [Int] -quickSort xs = unur $ Array.fromList xs $ Array.toList . arrQuicksort +qsortUsingList :: (Ord a) => [a] -> [a] +qsortUsingList [] = [] +qsortUsingList (x : xs) = qsortUsingList ltx ++ x : qsortUsingList gex + where + ltx = [y | y <- xs, y < x] + gex = [y | y <- xs, y >= x] + +qsortUsingArray :: (Ord a) => [a] -> [a] +qsortUsingArray xs = unur $ Array.fromList xs $ Array.toList . qsortArray -arrQuicksort :: Array Int %1 -> Array Int -arrQuicksort arr = +qsortArray :: (Ord a) => Array a %1 -> Array a +qsortArray arr = Array.size arr & \(Ur len, arr1) -> go 0 (len - 1) arr1 -go :: Int -> Int -> Array Int %1 -> Array Int +go :: (Ord a) => Int -> Int -> Array a %1 -> Array a go lo hi arr | lo >= hi = arr | otherwise = @@ -39,23 +50,23 @@ go lo hi arr -- @arr'[j] > pivot@ for @ix < j <= hi@, -- @arr'[k] = arr[k]@ for @k < lo@ and @k > hi@, and -- @arr'@ is a permutation of @arr@. -partition :: Array Int %1 -> Int -> Int -> Int -> (Array Int, Ur Int) -partition arr pivot lx rx - | (rx < lx) = (arr, Ur (lx - 1)) +partition :: (Ord a) => Array a %1 -> a -> Int -> Int -> (Array a, Ur Int) +partition arr pivot lo hi + | (hi < lo) = (arr, Ur (lo - 1)) | otherwise = - Array.read arr lx + Array.read arr lo & \(Ur lVal, arr1) -> - Array.read arr1 rx + Array.read arr1 hi & \(Ur rVal, arr2) -> case (lVal <= pivot, pivot < rVal) of - (True, True) -> partition arr2 pivot (lx + 1) (rx - 1) - (True, False) -> partition arr2 pivot (lx + 1) rx - (False, True) -> partition arr2 pivot lx (rx - 1) + (True, True) -> partition arr2 pivot (lo + 1) (hi - 1) + (True, False) -> partition arr2 pivot (lo + 1) hi + (False, True) -> partition arr2 pivot lo (hi - 1) (False, False) -> - swap arr2 lx rx - & \arr3 -> partition arr3 pivot (lx + 1) (rx - 1) + swap arr2 lo hi + & \arr3 -> partition arr3 pivot (lo + 1) (hi - 1) -- | @swap a i j@ exchanges the positions of values at @i@ and @j@ of @a@. -swap :: (HasCallStack) => Array Int %1 -> Int -> Int -> Array Int +swap :: (HasCallStack) => Array a %1 -> Int -> Int -> Array a swap arr i j = Array.read arr i & \(Ur ival, arr1) -> diff --git a/examples/Simple/TopSort.hs b/examples/Data/HashMap/Mutable/TopSort.hs similarity index 98% rename from examples/Simple/TopSort.hs rename to examples/Data/HashMap/Mutable/TopSort.hs index a6104b63..ab861167 100644 --- a/examples/Simple/TopSort.hs +++ b/examples/Data/HashMap/Mutable/TopSort.hs @@ -5,7 +5,7 @@ {-# OPTIONS_GHC -Wno-name-shadowing #-} {-# OPTIONS_GHC -Wno-unused-matches #-} -module Simple.TopSort where +module Data.HashMap.Mutable.TopSort where import Data.Bifunctor.Linear (second) import qualified Data.Functor.Linear as Data diff --git a/examples/README.md b/examples/README.md index 776c75fa..27f920a5 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,10 +1,16 @@ # Examples + * `Data` + * These are examples of using the pure linear interface of mutable + data structures provided by linear base. * `Simple` * These are tutorial level examples for understanding linear types and using bread-and-butter tools in linear base. * Recommended order: `Pure`, `FileIO`. * `Foreign` * These are examples of explicitly allocating off the GC heap's - memory and on the system heap's memory + memory and on the system heap's memory. + * `Compact` + * These are examples of using compact regions through the + destination-passing style interface. diff --git a/ghc-dps-compact-95615577d7.tar.xz b/ghc-dps-compact-95615577d7.tar.xz new file mode 100644 index 00000000..0d4f5083 --- /dev/null +++ b/ghc-dps-compact-95615577d7.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2141194cdd93ea4523b7b6a7453284cfead735abbb8ced33bd5375cbbabc122 +size 539245564 diff --git a/linear-base.cabal b/linear-base.cabal index 998b7f76..7c3486f3 100644 --- a/linear-base.cabal +++ b/linear-base.cabal @@ -41,7 +41,15 @@ library hs-source-dirs: src-version-changes/ghc96/after else hs-source-dirs: src-version-changes/ghc96/before + if impl(ghc == 9.11.20241002) + hs-source-dirs: src-version-changes/ghc-dps-compact/after + else + hs-source-dirs: src-version-changes/ghc-dps-compact/before exposed-modules: + Compact.Destination + Compact.Destination.Internal + Compact.Destination.GFill + Compact.Destination.Fill Control.Monad.IO.Class.Linear Control.Functor.Linear Control.Functor.Linear.Internal.Class @@ -135,6 +143,7 @@ library build-depends: base >=4.16 && <5, containers, + ghc-compact, ghc-prim, ghc-bignum, hashable, @@ -143,24 +152,37 @@ library text, transformers, vector >=0.12.2, - primitive + primitive, + reflection library examples import: build-opts hs-source-dirs: examples + if impl(ghc == 9.11.20241002) + hs-source-dirs: examples-version-changes/ghc-dps-compact/after + else + hs-source-dirs: examples-version-changes/ghc-dps-compact/before exposed-modules: Foreign.List Foreign.Heap Simple.FileIO Simple.Pure - Simple.Quicksort - Simple.TopSort + Data.Array.Mutable.Quicksort + Data.HashMap.Mutable.TopSort + Compact.BFTraversal + Compact.DList + Compact.Map + Compact.Queue + Compact.SExpr build-depends: base, + bytestring, linear-base, storable-tuple, vector, - text + text, + deepseq, + mtl test-suite test import: build-opts @@ -168,16 +190,21 @@ test-suite test type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: test + if impl(ghc == 9.11.20241002) + hs-source-dirs: test-version-changes/ghc-dps-compact/after + else + hs-source-dirs: test-version-changes/ghc-dps-compact/before other-modules: - Test.Data.Destination - Test.Data.Mutable.Array - Test.Data.Mutable.Vector - Test.Data.Mutable.HashMap - Test.Data.Mutable.Set - Test.Data.Polarized + Test.Data.Array.Destination + Test.Data.Array.Mutable + Test.Data.Vector.Mutable + Test.Data.HashMap.Mutable + Test.Data.Set.Mutable + Test.Data.Array.Polarized Test.Data.Functor.Linear Test.Data.V Test.Data.Replicator + Test.Compact.Destination default-language: Haskell2010 build-depends: inspection-testing, @@ -188,6 +215,7 @@ test-suite test hedgehog, tasty, tasty-hedgehog >= 1.2, + tasty-hunit, mmorph, vector, linear-generics @@ -198,15 +226,28 @@ test-suite test-examples type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: test-examples + if impl(ghc == 9.11.20241002) + hs-source-dirs: test-examples-version-changes/ghc-dps-compact/after + else + hs-source-dirs: test-examples-version-changes/ghc-dps-compact/before other-modules: Test.Foreign - Test.Simple.Quicksort + Test.Data.Array.Mutable.Quicksort + Test.Compact.BFTraversal + Test.Compact.DList + Test.Compact.Map + Test.Compact.Queue + Test.Compact.SExpr + Test.Compact.Utils + Test.Compact default-language: Haskell2010 build-depends: base, + bytestring, linear-base, tasty, tasty-hedgehog, + tasty-hunit, hedgehog, examples @@ -216,12 +257,25 @@ benchmark bench type: exitcode-stdio-1.0 main-is: Main.hs hs-source-dirs: bench + if impl(ghc == 9.11.20241002) + hs-source-dirs: bench-version-changes/ghc-dps-compact/after + else + hs-source-dirs: bench-version-changes/ghc-dps-compact/before other-modules: - Data.Mutable.HashMap - Data.Mutable.Array + Bench.Data.HashMap.Mutable + Bench.Data.Array.Mutable + Bench.Data.Array.Mutable.Quicksort + Bench.Compact.BFTraversal + Bench.Compact.DList + Bench.Compact.Map + Bench.Compact.Queue + Bench.Compact.SExpr + Bench.Compact.Utils + Bench.Compact default-language: Haskell2010 build-depends: base, + bytestring, containers, vector, deepseq, @@ -230,7 +284,9 @@ benchmark bench linear-base, random, random-shuffle, + tasty, tasty-bench >= 0.3, unordered-containers, MonadRandom, - examples + examples, + ghc-compact diff --git a/shell.nix b/shell.nix index e703f76f..81773b6e 100644 --- a/shell.nix +++ b/shell.nix @@ -25,6 +25,7 @@ mkShell { # Set UTF-8 local so that run-tests can parse GHC's unicode output. LANG="C.UTF-8"; NIX_PATH = "nixpkgs=${pkgs.path}"; + LD_LIBRARY_PATH = "${gmp.out}/lib:${numactl.out}/lib"; buildInputs = [ haskell.compiler."ghc${ghcVersion}" @@ -32,5 +33,8 @@ mkShell { stack-wrapped nix cabal-docspec + numactl + gmp + curl ] ++ (if installHls then [ haskell-language-server ] else []); } diff --git a/src-version-changes/ghc-dps-compact/after/Compact/Destination.hs b/src-version-changes/ghc-dps-compact/after/Compact/Destination.hs new file mode 100644 index 00000000..1ef328c7 --- /dev/null +++ b/src-version-changes/ghc-dps-compact/after/Compact/Destination.hs @@ -0,0 +1,20 @@ +module Compact.Destination + ( Token, + Region, + withRegion, + Incomplete, + piggyback, + alloc, + intoIncomplete, + fromIncomplete_, + fromIncomplete, + Dest, + DestsOf, + fill, + fillComp, + fillLeaf, + ) +where + +import Compact.Destination.Internal +import Compact.Destination.Fill diff --git a/src-version-changes/ghc-dps-compact/after/Compact/Destination/Fill.hs b/src-version-changes/ghc-dps-compact/after/Compact/Destination/Fill.hs new file mode 100644 index 00000000..95b5293f --- /dev/null +++ b/src-version-changes/ghc-dps-compact/after/Compact/Destination/Fill.hs @@ -0,0 +1,40 @@ +{-# LANGUAGE GHC2021 #-} +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE DerivingVia #-} +{-# LANGUAGE GADTs #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE MagicHash #-} +{-# LANGUAGE PatternSynonyms #-} +{-# LANGUAGE RecordWildCards #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE UnboxedTuples #-} +{-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-name-shadowing #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} +{-# OPTIONS_HADDOCK hide #-} + +module Compact.Destination.Fill where + +import Compact.Destination.Internal +import Compact.Destination.GFill +import Data.Kind (Type) +import GHC.Compact (Compact (..)) +import GHC.MVar (MVar (..)) +import GHC.Exts +import Unsafe.Linear (toLinear) + +class Fill lCtor (a :: Type) where + _fill :: forall (r :: Type). (Region r) => Dest r a -> DestsOf lCtor r a + +instance (specCtor ~ LiftedCtorToSpecCtor lCtor a, GFill# lCtor specCtor a) => Fill lCtor a where + _fill :: forall (r :: Type). (Region r) => Dest r a -> DestsOf lCtor r a + _fill (Dest d#) = case getRegionInfo @r of + (RegionInfo (Compact c# _ (MVar m#))) -> case runRW# (gFill# @lCtor @specCtor @a @r c# m# d#) of (# _, res #) -> res + {-# INLINE _fill #-} + +fill :: forall lCtor (r :: Type) (a :: Type). (Fill lCtor a, Region r) => Dest r a %1 -> DestsOf lCtor r a +fill = toLinear (_fill @lCtor @a @r) +{-# INLINE fill #-} \ No newline at end of file diff --git a/src-version-changes/ghc-dps-compact/after/Compact/Destination/GFill.hs b/src-version-changes/ghc-dps-compact/after/Compact/Destination/GFill.hs new file mode 100644 index 00000000..b066da1c --- /dev/null +++ b/src-version-changes/ghc-dps-compact/after/Compact/Destination/GFill.hs @@ -0,0 +1,296 @@ + +{-# LANGUAGE GHC2021 #-} +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE DerivingVia #-} +{-# LANGUAGE GADTs #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE MagicHash #-} +{-# LANGUAGE PatternSynonyms #-} +{-# LANGUAGE RecordWildCards #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE UnboxedTuples #-} +{-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-name-shadowing #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} +{-# OPTIONS_HADDOCK hide #-} + +module Compact.Destination.GFill where + +-- ***************************************************************************** +-- * THIS FILE IS GENERATED BY SCRIPT GFill.hs.py, PLEASE DO NOT EDIT MANUALLY * +-- ***************************************************************************** + +import Compact.Destination.Internal +import GHC.Generics +import Data.Kind (Type) +import GHC.Exts +import GHC.TypeLits +import Unsafe.Coerce (unsafeCoerceAddr) + +class GFill# lCtor (specCtor :: (Meta, [(Meta, Type)])) (a :: Type) where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld -> (# State# RealWorld, GDestsOf specCtor r #) + +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ ]) ~ GSpecCtorOf symCtor (Rep a ()) + ) => GFill# lCtor '(metaCtor, '[ ]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, () #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots0# xInRegion bH# bW# s3 of + (# s4, (# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) []) + (# s5, () #) + {-# INLINE gFill# #-} + +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0)]) ~ GSpecCtorOf symCtor (Rep a ()), + NotUnpacked ds0 + ) => GFill# lCtor '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0)]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, (Dest r t0) #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots1# xInRegion bH# bW# s3 of + (# s4, (# d0# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) [Ptr d0#]) + (# s5, (Dest d0#) #) + {-# INLINE gFill# #-} + +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1)]) ~ GSpecCtorOf symCtor (Rep a ()), + NotUnpacked ds0, + NotUnpacked ds1 + ) => GFill# lCtor '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1)]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, (Dest r t0, Dest r t1) #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots2# xInRegion bH# bW# s3 of + (# s4, (# d0#, d1# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) [Ptr d0#, Ptr d1#]) + (# s5, (Dest d0#, Dest d1#) #) + {-# INLINE gFill# #-} + +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2)]) ~ GSpecCtorOf symCtor (Rep a ()), + NotUnpacked ds0, + NotUnpacked ds1, + NotUnpacked ds2 + ) => GFill# lCtor '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2)]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, (Dest r t0, Dest r t1, Dest r t2) #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots3# xInRegion bH# bW# s3 of + (# s4, (# d0#, d1#, d2# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) [Ptr d0#, Ptr d1#, Ptr d2#]) + (# s5, (Dest d0#, Dest d1#, Dest d2#) #) + {-# INLINE gFill# #-} + +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2), + '( 'MetaSel f3 u3 ss3 ds3, t3)]) ~ GSpecCtorOf symCtor (Rep a ()), + NotUnpacked ds0, + NotUnpacked ds1, + NotUnpacked ds2, + NotUnpacked ds3 + ) => GFill# lCtor '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2), + '( 'MetaSel f3 u3 ss3 ds3, t3)]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, (Dest r t0, Dest r t1, Dest r t2, Dest r t3) #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots4# xInRegion bH# bW# s3 of + (# s4, (# d0#, d1#, d2#, d3# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) [Ptr d0#, Ptr d1#, Ptr d2#, Ptr d3#]) + (# s5, (Dest d0#, Dest d1#, Dest d2#, Dest d3#) #) + {-# INLINE gFill# #-} + +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2), + '( 'MetaSel f3 u3 ss3 ds3, t3), + '( 'MetaSel f4 u4 ss4 ds4, t4)]) ~ GSpecCtorOf symCtor (Rep a ()), + NotUnpacked ds0, + NotUnpacked ds1, + NotUnpacked ds2, + NotUnpacked ds3, + NotUnpacked ds4 + ) => GFill# lCtor '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2), + '( 'MetaSel f3 u3 ss3 ds3, t3), + '( 'MetaSel f4 u4 ss4 ds4, t4)]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, (Dest r t0, Dest r t1, Dest r t2, Dest r t3, Dest r t4) #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots5# xInRegion bH# bW# s3 of + (# s4, (# d0#, d1#, d2#, d3#, d4# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) [Ptr d0#, Ptr d1#, Ptr d2#, Ptr d3#, Ptr d4#]) + (# s5, (Dest d0#, Dest d1#, Dest d2#, Dest d3#, Dest d4#) #) + {-# INLINE gFill# #-} + +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2), + '( 'MetaSel f3 u3 ss3 ds3, t3), + '( 'MetaSel f4 u4 ss4 ds4, t4), + '( 'MetaSel f5 u5 ss5 ds5, t5)]) ~ GSpecCtorOf symCtor (Rep a ()), + NotUnpacked ds0, + NotUnpacked ds1, + NotUnpacked ds2, + NotUnpacked ds3, + NotUnpacked ds4, + NotUnpacked ds5 + ) => GFill# lCtor '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2), + '( 'MetaSel f3 u3 ss3 ds3, t3), + '( 'MetaSel f4 u4 ss4 ds4, t4), + '( 'MetaSel f5 u5 ss5 ds5, t5)]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, (Dest r t0, Dest r t1, Dest r t2, Dest r t3, Dest r t4, Dest r t5) #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots6# xInRegion bH# bW# s3 of + (# s4, (# d0#, d1#, d2#, d3#, d4#, d5# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) [Ptr d0#, Ptr d1#, Ptr d2#, Ptr d3#, Ptr d4#, Ptr d5#]) + (# s5, (Dest d0#, Dest d1#, Dest d2#, Dest d3#, Dest d4#, Dest d5#) #) + {-# INLINE gFill# #-} + +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2), + '( 'MetaSel f3 u3 ss3 ds3, t3), + '( 'MetaSel f4 u4 ss4 ds4, t4), + '( 'MetaSel f5 u5 ss5 ds5, t5), + '( 'MetaSel f6 u6 ss6 ds6, t6)]) ~ GSpecCtorOf symCtor (Rep a ()), + NotUnpacked ds0, + NotUnpacked ds1, + NotUnpacked ds2, + NotUnpacked ds3, + NotUnpacked ds4, + NotUnpacked ds5, + NotUnpacked ds6 + ) => GFill# lCtor '(metaCtor, '[ '( 'MetaSel f0 u0 ss0 ds0, t0), + '( 'MetaSel f1 u1 ss1 ds1, t1), + '( 'MetaSel f2 u2 ss2 ds2, t2), + '( 'MetaSel f3 u3 ss3 ds3, t3), + '( 'MetaSel f4 u4 ss4 ds4, t4), + '( 'MetaSel f5 u5 ss5 ds5, t5), + '( 'MetaSel f6 u6 ss6 ds6, t6)]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, (Dest r t0, Dest r t1, Dest r t2, Dest r t3, Dest r t4, Dest r t5, Dest r t6) #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots7# xInRegion bH# bW# s3 of + (# s4, (# d0#, d1#, d2#, d3#, d4#, d5#, d6# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) [Ptr d0#, Ptr d1#, Ptr d2#, Ptr d3#, Ptr d4#, Ptr d5#, Ptr d6#]) + (# s5, (Dest d0#, Dest d1#, Dest d2#, Dest d3#, Dest d4#, Dest d5#, Dest d6#) #) + {-# INLINE gFill# #-} diff --git a/src-version-changes/ghc-dps-compact/after/Compact/Destination/GFill.hs.py b/src-version-changes/ghc-dps-compact/after/Compact/Destination/GFill.hs.py new file mode 100644 index 00000000..b56ed4d5 --- /dev/null +++ b/src-version-changes/ghc-dps-compact/after/Compact/Destination/GFill.hs.py @@ -0,0 +1,99 @@ +import os + +HEADER = """ +{-# LANGUAGE GHC2021 #-} +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE DerivingVia #-} +{-# LANGUAGE GADTs #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE MagicHash #-} +{-# LANGUAGE PatternSynonyms #-} +{-# LANGUAGE RecordWildCards #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE UnboxedTuples #-} +{-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-name-shadowing #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} +{-# OPTIONS_HADDOCK hide #-} + +module Compact.Destination.GFill where + +-- ***************************************************************************** +-- * THIS FILE IS GENERATED BY SCRIPT GFill.hs.py, PLEASE DO NOT EDIT MANUALLY * +-- ***************************************************************************** + +import Compact.Destination.Internal +import GHC.Generics +import Data.Kind (Type) +import GHC.Exts +import GHC.TypeLits +import Unsafe.Coerce (unsafeCoerceAddr) + +class GFill# lCtor (specCtor :: (Meta, [(Meta, Type)])) (a :: Type) where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld -> (# State# RealWorld, GDestsOf specCtor r #) +""" + +INSTANCE = """ +instance ( + Generic a, + repA ~ Rep a (), + metaA ~ GDatatypeMetaOf repA, + Datatype metaA, + 'MetaCons symCtor fix hasSel ~ metaCtor, + Constructor metaCtor, + LiftedCtorToSymbol lCtor ~ symCtor, + 'Just '(metaCtor, '[ {meta_fields_constr}]) ~ GSpecCtorOf symCtor (Rep a ()){not_unpacked_constraints} + ) => GFill# lCtor '(metaCtor, '[ {meta_fields_head}]) a where + gFill# :: forall (r :: Type). Compact# -> MVar# RealWorld () -> Addr# -> State# RealWorld + -> (# State# RealWorld, ({ty_dests}) #) + gFill# c# m# d# s0 = + case takeMVar# m# s0 of + (# s1, () #) -> + case compactAddHollow# c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# lCtor)) s1 of + (# s2, xInRegion, bH#, bW# #) -> case assign# d# xInRegion s2 of + (# s3, pXInRegion# #) -> case getSlots{n}# xInRegion bH# bW# s3 of + (# s4, (# {raw_dests} #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# + (showFill (Ptr d#) (Ptr pXInRegion#) (conName @metaCtor undefined) [{ptr_dests}]) + (# s5, ({dest_dests}) #) + {{-# INLINE gFill# #-}} +""" + +PADDING_META_FIELDS_CONSTR = " " * len(" 'Just '(metaCtor, '[ ") +PADDING_META_FIELDS_HEAD = " " * len(" ) => GFill# lCtor '(metaCtor, '[ ") + +BOUND = 7 + +script_dir = os.path.dirname(os.path.abspath(__file__)) +gfill_path = os.path.join(script_dir, "GFill.hs") + +# make write only so we can override if it exists +if os.path.exists(gfill_path): + os.chmod(gfill_path, 0o644) + +with open(gfill_path, "w", encoding="utf-8") as output_file: + output_file.write(HEADER) + for n in range(0, BOUND + 1): + meta_fields_constr = f",\n{PADDING_META_FIELDS_CONSTR}".join(f"'( 'MetaSel f{i} u{i} ss{i} ds{i}, t{i})" for i in range(n)) + not_unpacked_constraints = "".join(f",\n NotUnpacked ds{i}" for i in range(n)) + meta_fields_head = f",\n{PADDING_META_FIELDS_HEAD}".join(f"'( 'MetaSel f{i} u{i} ss{i} ds{i}, t{i})" for i in range(n)) + ty_dests = ", ".join(f"Dest r t{i}" for i in range(n)) + raw_dests = ", ".join(f"d{i}#" for i in range(n)) + ptr_dests = ", ".join(f"Ptr d{i}#" for i in range(n)) + dest_dests = ", ".join(f"Dest d{i}#" for i in range(n)) + output_file.write(INSTANCE.format( + n=n, + meta_fields_constr=meta_fields_constr, + not_unpacked_constraints=not_unpacked_constraints, + meta_fields_head=meta_fields_head, + ty_dests=ty_dests, + raw_dests=raw_dests, + ptr_dests=ptr_dests, + dest_dests=dest_dests + )) + +# make file read-only to prevent accidents +os.chmod(gfill_path, 0o444) \ No newline at end of file diff --git a/src-version-changes/ghc-dps-compact/after/Compact/Destination/Internal.hs b/src-version-changes/ghc-dps-compact/after/Compact/Destination/Internal.hs new file mode 100644 index 00000000..f3d466b5 --- /dev/null +++ b/src-version-changes/ghc-dps-compact/after/Compact/Destination/Internal.hs @@ -0,0 +1,418 @@ +{-# LANGUAGE GHC2021 #-} +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE DerivingVia #-} +{-# LANGUAGE GADTs #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE MagicHash #-} +{-# LANGUAGE PatternSynonyms #-} +{-# LANGUAGE RecordWildCards #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeFamilies #-} +{-# LANGUAGE UnboxedTuples #-} +{-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -Wno-name-shadowing #-} +{-# OPTIONS_GHC -ddump-simpl -ddump-to-file -dsuppress-all #-} +{-# OPTIONS_HADDOCK hide #-} + +module Compact.Destination.Internal where + +import Control.Functor.Linear qualified as Control +import Data.Data (Proxy (Proxy)) +import Data.Functor.Linear qualified as Data +import Data.Kind (Type) +import Data.List (intercalate) +import Data.Reflection (Reifies (reflect), reify) +import Data.Replicator.Linear.Internal (Replicator (Moved)) +import Data.Unrestricted.Linear.Internal.Consumable +import Data.Unrestricted.Linear.Internal.Dupable +import Data.Unrestricted.Linear.Internal.Ur +import GHC.Compact (Compact (..), compact, getCompact) +import GHC.Exts +import GHC.Generics +import GHC.IO (IO (..), unsafePerformIO) +import GHC.MVar (MVar (..)) +import GHC.TypeLits +import Unsafe.Coerce (unsafeCoerceAddr) +import Unsafe.Linear (toLinear, toLinear2) +import Prelude hiding (Monad, (>>=)) + +debugEnabled :: Bool +debugEnabled = False +{-# INLINE debugEnabled #-} + +ptrToWord :: Ptr a -> Word +ptrToWord (Ptr addr#) = W# (addr2Word# addr#) +{-# INLINE ptrToWord #-} + +addr2Word# :: Addr# -> Word# +addr2Word# addr# = int2Word# (addr2Int# addr#) +{-# INLINE addr2Word# #-} + +word2Addr# :: Word# -> Addr# +word2Addr# word# = int2Addr# (word2Int# word#) +{-# INLINE word2Addr# #-} + +align# :: Word# -> Addr# -> Addr# +align# bW# addr# = + let mask# = bW# `minusWord#` 1## + w# = addr2Word# addr# + in word2Addr# (w# `and#` (not# mask#)) +{-# INLINE align# #-} + +offsetAddr# :: Word# -> Word# -> Addr# -> Word# -> Addr# +offsetAddr# bH# bW# addr# fieldIdx# = word2Addr# (addr2Word# addr# `plusWord#` bH# `plusWord#` (bW# `timesWord#` fieldIdx#)) +{-# INLINE offsetAddr# #-} + +getSlots0# :: a -> Word# -> Word# -> State# RealWorld -> (# State# RealWorld, (# #) #) +getSlots0# _ _ _ s0 = (# s0, (# #) #) +{-# INLINE getSlots0# #-} + +getSlots1# :: a -> Word# -> Word# -> State# RealWorld -> (# State# RealWorld, (# Addr# #) #) +getSlots1# x bH# bW# s0 = case anyToAddr# x s0 of + (# s1, pXRaw# #) -> let pX# = align# bW# pXRaw# in (# s1, (# offsetAddr# bH# bW# pX# 0## #) #) +{-# INLINE getSlots1# #-} + +getSlots2# :: a -> Word# -> Word# -> State# RealWorld -> (# State# RealWorld, (# Addr#, Addr# #) #) +getSlots2# x bH# bW# s0 = case anyToAddr# x s0 of + (# s1, pXRaw# #) -> let pX# = align# bW# pXRaw# in (# s1, (# offsetAddr# bH# bW# pX# 0##, offsetAddr# bH# bW# pX# 1## #) #) +{-# INLINE getSlots2# #-} + +getSlots3# :: a -> Word# -> Word# -> State# RealWorld -> (# State# RealWorld, (# Addr#, Addr#, Addr# #) #) +getSlots3# x bH# bW# s0 = case anyToAddr# x s0 of + (# s1, pXRaw# #) -> let pX# = align# bW# pXRaw# in (# s1, (# offsetAddr# bH# bW# pX# 0##, offsetAddr# bH# bW# pX# 1##, offsetAddr# bH# bW# pX# 2## #) #) +{-# INLINE getSlots3# #-} + +getSlots4# :: a -> Word# -> Word# -> State# RealWorld -> (# State# RealWorld, (# Addr#, Addr#, Addr#, Addr# #) #) +getSlots4# x bH# bW# s0 = case anyToAddr# x s0 of + (# s1, pXRaw# #) -> let pX# = align# bW# pXRaw# in (# s1, (# offsetAddr# bH# bW# pX# 0##, offsetAddr# bH# bW# pX# 1##, offsetAddr# bH# bW# pX# 2##, offsetAddr# bH# bW# pX# 3## #) #) +{-# INLINE getSlots4# #-} + +getSlots5# :: a -> Word# -> Word# -> State# RealWorld -> (# State# RealWorld, (# Addr#, Addr#, Addr#, Addr#, Addr# #) #) +getSlots5# x bH# bW# s0 = case anyToAddr# x s0 of + (# s1, pXRaw# #) -> let pX# = align# bW# pXRaw# in (# s1, (# offsetAddr# bH# bW# pX# 0##, offsetAddr# bH# bW# pX# 1##, offsetAddr# bH# bW# pX# 2##, offsetAddr# bH# bW# pX# 3##, offsetAddr# bH# bW# pX# 4## #) #) +{-# INLINE getSlots5# #-} + +getSlots6# :: a -> Word# -> Word# -> State# RealWorld -> (# State# RealWorld, (# Addr#, Addr#, Addr#, Addr#, Addr#, Addr# #) #) +getSlots6# x bH# bW# s0 = case anyToAddr# x s0 of + (# s1, pXRaw# #) -> let pX# = align# bW# pXRaw# in (# s1, (# offsetAddr# bH# bW# pX# 0##, offsetAddr# bH# bW# pX# 1##, offsetAddr# bH# bW# pX# 2##, offsetAddr# bH# bW# pX# 3##, offsetAddr# bH# bW# pX# 4##, offsetAddr# bH# bW# pX# 5## #) #) +{-# INLINE getSlots6# #-} + +getSlots7# :: a -> Word# -> Word# -> State# RealWorld -> (# State# RealWorld, (# Addr#, Addr#, Addr#, Addr#, Addr#, Addr#, Addr# #) #) +getSlots7# x bH# bW# s0 = case anyToAddr# x s0 of + (# s1, pXRaw# #) -> let pX# = align# bW# pXRaw# in (# s1, (# offsetAddr# bH# bW# pX# 0##, offsetAddr# bH# bW# pX# 1##, offsetAddr# bH# bW# pX# 2##, offsetAddr# bH# bW# pX# 3##, offsetAddr# bH# bW# pX# 4##, offsetAddr# bH# bW# pX# 5##, offsetAddr# bH# bW# pX# 6## #) #) +{-# INLINE getSlots7# #-} + +showFill :: Ptr Word -> Ptr Word -> String -> [Ptr Word] -> String +showFill parentWriteLoc pX ctorName slots = + "fill" + ++ (show n) + ++ ": @" + ++ show (ptrToWord parentWriteLoc) + ++ " <- #" + ++ show (ptrToWord pX) + ++ ": " + ++ ctorName + ++ " " + ++ showSlots slots + where + n = length slots + showSlots = intercalate " " . fmap showSlot + showSlot ptr = "_@" ++ (show $ ptrToWord ptr) + +putDebugLn :: String -> IO () +putDebugLn x = + if debugEnabled + then putStrLn x + else return () +{-# INLINE putDebugLn #-} + +putDebugLn# :: String -> (# State# RealWorld, res #) -> (# State# RealWorld, res #) +putDebugLn# text (# s0, res #) = + if debugEnabled + then case (putStrLn text) of IO f -> case f s0 of (# s1, () #) -> (# s1, res #) + else (# s0, res #) +{-# INLINE putDebugLn# #-} + +putInRegionIfNot# :: Compact# -> MVar# RealWorld () -> a -> State# RealWorld -> (# State# RealWorld, a #) +putInRegionIfNot# c# m# x = \s0 -> case compactContains# c# x s0 of + (# s1, 1# #) -> (# s1, x #) -- already in region + (# s1, _ #) -> case takeMVar# m# s1 of + (# s2, () #) -> case compactAdd# c# x s2 of + (# s3, xInRegion #) -> case putMVar# m# () s3 of + s4 -> (# s4, xInRegion #) +{-# INLINE putInRegionIfNot# #-} + +-- x must be already in the same region as the value, and fully evaluated +assign# :: Addr# -> a -> State# RealWorld -> (# State# RealWorld, Addr# #) +assign# dest xInRegion s0 = case anyToAddr# xInRegion s0 of + (# s1, pXInRegion# #) -> case writeAddrOffAddr# (unsafeCoerceAddr dest) 0# pXInRegion# s1 of + s2 -> (# s2, pXInRegion# #) +{-# INLINE assign# #-} + +------------------------------------------------------------------------------- +-- RegionInfo and dests +------------------------------------------------------------------------------- + +data FirstInhabitant = FirstInhabitant Int + +firstInhabitant :: FirstInhabitant +firstInhabitant = FirstInhabitant 1234 + +newtype RegionInfo = RegionInfo (Compact FirstInhabitant) + +data Token = Token + +instance Consumable (Token) where + consume Token = () + +instance Dupable (Token) where + dupR Token = Moved Token + +type Region r = Reifies r RegionInfo + +getRegionInfo :: forall r. (Region r) => RegionInfo +getRegionInfo = reflect (Proxy :: Proxy r) +{-# INLINE getRegionInfo #-} + +withRegion :: forall b. (forall (r :: Type). (Region r) => Token %1 -> Ur b) %1 -> Ur b +withRegion = toLinear _withRegion +{-# INLINE withRegion #-} + +_withRegion :: forall b. (forall (r :: Type). (Region r) => Token %1 -> Ur b) -> Ur b +_withRegion f = + unsafePerformIO $ do + c <- (compact firstInhabitant) + let !firstInhabitantInRegion = getCompact c + firstPtr <- IO (\s -> case anyToAddr# firstInhabitantInRegion s of (# s', addr# #) -> (# s', W# (addr2Word# addr#) #)) + putDebugLn $ + "withRegion: allocating new region around @" + ++ (show firstPtr) + let !result = reify (RegionInfo c) (\(_ :: Proxy s) -> f @s Token) + resultPtr <- IO (\s -> case anyToAddr# result s of (# s', addr# #) -> (# s', W# (addr2Word# addr#) #)) + putDebugLn $ + "withRegion: exiting and returning @" + ++ (show resultPtr) + return result +{-# NOINLINE _withRegion #-} + +data Incomplete r a b = Incomplete a b + +instance Data.Functor (Incomplete r a) where + fmap f (Incomplete x y) = let !r = f y in Incomplete x r + {-# INLINE fmap #-} + +instance Control.Functor (Incomplete r a) where + fmap f (Incomplete x y) = let !r = f y in Incomplete x r + {-# INLINE fmap #-} + +piggyback :: forall r a b. (Region r) => Incomplete r a b %1 -> (Incomplete r a b, Token) +piggyback i = (i, Token) +{-# INLINE piggyback #-} + +alloc :: forall r a. (Region r) => Token %1 -> Incomplete r a (Dest r a) +alloc = toLinear _alloc +{-# INLINE alloc #-} + +_alloc :: forall r a. (Region r) => Token -> Incomplete r a (Dest r a) +_alloc _ = case getRegionInfo @r of + RegionInfo (Compact c# _ (MVar m#)) -> case runRW# $ \s0 -> case takeMVar# m# s0 of + (# s1, () #) -> case compactAddHollow# @a c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# "IND")) s1 of + (# s2, indRoot, bH#, bW# #) -> case anyToAddr# indRoot s2 of + (# s3, pIndRoot# #) -> case getSlots1# indRoot bH# bW# s3 of + (# s4, (# dRoot# #) #) -> case putMVar# m# () s4 of + s5 -> putDebugLn# message (# s5, Incomplete indRoot (Dest dRoot#) #) + where + message = + ( "alloc: [region] <- #" + ++ (show . ptrToWord $ Ptr pIndRoot#) + ++ ": IND _@" + ++ (show . ptrToWord $ Ptr dRoot#) + ) of + (# _, res #) -> res +{-# INLINE _alloc #-} + +intoIncomplete :: forall r a. (Region r) => Token %1 -> a -> Incomplete r a () +intoIncomplete = toLinear2 _intoIncomplete +{-# INLINE intoIncomplete #-} + +_intoIncomplete :: forall r a. (Region r) => Token -> a -> Incomplete r a () +_intoIncomplete _ x = case getRegionInfo @r of + RegionInfo (Compact c# _ (MVar m#)) -> case runRW# $ \s0 -> + case putInRegionIfNot# c# m# x s0 of + (# s1, xInRegion #) -> case anyToAddr# xInRegion s1 of + (# s2, pXInRegion# #) -> putDebugLn# message (# s2, Incomplete xInRegion () #) + where + message = + ( "intoIncomplete: [region] <- #" + ++ (show . ptrToWord $ Ptr pXInRegion#) + ++ ": [value]" + ) of + (# _, res #) -> res +{-# INLINE _intoIncomplete #-} + +fromIncomplete_ :: forall r a. (Region r) => Incomplete r a () %1 -> Ur a +fromIncomplete_ = toLinear _fromIncomplete_ +{-# INLINE fromIncomplete_ #-} + +_fromIncomplete_ :: forall r a. (Region r) => Incomplete r a () -> Ur a +_fromIncomplete_ (Incomplete root ()) = case getRegionInfo @r of + (RegionInfo (Compact c# _ (MVar m#))) -> case runRW# $ \s0 -> case takeMVar# m# s0 of + (# s1, () #) -> case compactAddHollow# @(Ur a) c# ((unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# 'Ur))) s1 of + (# s2, receiver, bH#, bW# #) -> case anyToAddr# receiver s2 of + (# s3, pReceiver# #) -> case getSlots1# receiver bH# bW# s3 of + (# s4, (# dRoot# #) #) -> case putMVar# m# () s4 of + s5 -> case assign# dRoot# root s5 of + (# s6, pRoot# #) -> putDebugLn# message (# s6, receiver #) + where + message = + ( "fromIncomplete_: [region] <- #" + ++ (show . ptrToWord $ Ptr pReceiver#) + ++ ": Ur _@" + ++ (show . ptrToWord $ Ptr dRoot#) + ++ "\nfromIncomplete: @" + ++ (show . ptrToWord $ Ptr dRoot#) + ++ " <- #" + ++ (show . ptrToWord $ Ptr pRoot#) + ++ ": [root]" + ) of + (# _, res #) -> res +{-# INLINE _fromIncomplete_ #-} + +fromIncomplete :: forall r a b. (Region r) => Incomplete r a (Ur b) %1 -> Ur (a, b) +fromIncomplete = toLinear _fromIncomplete +{-# INLINE fromIncomplete #-} + +_fromIncomplete :: forall r a b. (Region r) => Incomplete r a (Ur b) -> Ur (a, b) +_fromIncomplete (Incomplete root uCompanion) = case getRegionInfo @r of + (RegionInfo (Compact c# _ (MVar m#))) -> case runRW# $ \s0 -> case takeMVar# m# s0 of + (# s1, () #) -> case compactAddHollow# @(Ur (a, b)) c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# 'Ur)) s1 of + (# s2, receiver, bH#, bW# #) -> case anyToAddr# receiver s2 of + (# s3, pReceiver# #) -> case getSlots1# receiver bH# bW# s3 of + (# s4, (# d# #) #) -> case compactAddHollow# @(a, b) c# (unsafeCoerceAddr (reifyInfoTablePtr# (# #) :: InfoTablePtrOf# '(,))) s4 of + (# s5, pair, bH#, bW# #) -> case assign# d# pair s5 of + (# s6, pPair# #) -> case getSlots2# pair bH# bW# s6 of + (# s7, (# dRoot#, dCompanion# #) #) -> case putMVar# m# () s7 of + s8 -> case assign# dRoot# root s8 of + (# s9, pRoot# #) -> case uCompanion of + Ur companion -> case putInRegionIfNot# c# m# companion s9 of + (# s10, companionInRegion #) -> case assign# dCompanion# companionInRegion s10 of + (# s11, pCompanionInRegion# #) -> putDebugLn# message (# s11, receiver #) + where + message = + ( "fromIncomplete: [region] <- #" + ++ (show . ptrToWord $ Ptr pReceiver#) + ++ ": Ur _@" + ++ (show . ptrToWord $ Ptr d#) + ++ "\nfromIncomplete: @" + ++ (show . ptrToWord $ Ptr d#) + ++ " <- #" + ++ (show . ptrToWord $ Ptr pPair#) + ++ ": (,) _@" + ++ (show . ptrToWord $ Ptr dRoot#) + ++ " _@" + ++ (show . ptrToWord $ Ptr dCompanion#) + ++ "\nfromIncomplete: @" + ++ (show . ptrToWord $ Ptr dRoot#) + ++ " <- #" + ++ (show . ptrToWord $ Ptr pRoot#) + ++ ": [root]" + ++ "\nfromIncomplete: @" + ++ (show . ptrToWord $ Ptr dCompanion#) + ++ " <- #" + ++ (show . ptrToWord $ Ptr pCompanionInRegion#) + ++ ": [companion]" + ) of + (# _, res #) -> res +{-# INLINE _fromIncomplete #-} + +------------------------------------------------------------------------------- +-- Metaprogramming stuff for dests +------------------------------------------------------------------------------- + +data Dest r a = Dest Addr# + +fillComp :: forall r a b. (Region r) => Incomplete r a b %1 -> Dest r a %1 -> b +fillComp = toLinear2 _fillComp +{-# INLINE fillComp #-} + +fillLeaf :: forall r a. (Region r) => a -> Dest r a %1 -> () +fillLeaf x = fillComp (intoIncomplete @r Token x) +{-# INLINE fillLeaf #-} + +_fillComp :: forall r a b. (Region r) => Incomplete r a b -> Dest r a -> b +_fillComp (Incomplete root companion) (Dest d#) = case runRW# $ \s0 -> case assign# d# root s0 of + (# s1, pRoot# #) -> putDebugLn# message (# s1, companion #) + where + message = + ( "fillComp: @" + ++ (show . ptrToWord $ Ptr d#) + ++ " <- #" + ++ (show . ptrToWord $ Ptr pRoot#) + ++ ": [Incomplete OR value]" + ) of + (# _, res #) -> res +{-# INLINE _fillComp #-} + +type family NotUnpacked a :: Constraint where + NotUnpacked a = NotUnpacked_ a ('DecidedUnpack) + +type family NotUnpacked_ a b :: Constraint where + NotUnpacked_ a a = TypeError ('Text "Field has 'DecidedUnpack representation, which is not supported by fill") + NotUnpacked_ _ _ = () + +type family GDestsOf (specCtor :: (Meta, [(Meta, Type)])) (r :: Type) :: Type where + GDestsOf '(_, '[]) _ = () + GDestsOf '(_, '[ '(_, t)]) r = Dest r t + GDestsOf '(_, '[ '(_, t0), '(_, t1)]) r = (Dest r t0, Dest r t1) + GDestsOf '(_, '[ '(_, t0), '(_, t1), '(_, t2)]) r = (Dest r t0, Dest r t1, Dest r t2) + GDestsOf '(_, '[ '(_, t0), '(_, t1), '(_, t2), '(_, t3)]) r = (Dest r t0, Dest r t1, Dest r t2, Dest r t3) + GDestsOf '(_, '[ '(_, t0), '(_, t1), '(_, t2), '(_, t3), '(_, t4)]) r = (Dest r t0, Dest r t1, Dest r t2, Dest r t3, Dest r t4) + GDestsOf '(_, '[ '(_, t0), '(_, t1), '(_, t2), '(_, t3), '(_, t4), '(_, t5)]) r = (Dest r t0, Dest r t1, Dest r t2, Dest r t3, Dest r t4, Dest r t5) + GDestsOf '(_, '[ '(_, t0), '(_, t1), '(_, t2), '(_, t3), '(_, t4), '(_, t5), '(_, t6)]) r = (Dest r t0, Dest r t1, Dest r t2, Dest r t3, Dest r t4, Dest r t5, Dest r t6) + GDestsOf _ _ = TypeError ('Text "GDestsOf not implemented for constructors with more than 7 fields") + +type family DestsOf lCtor (r :: Type) (a :: Type) where + DestsOf lCtor r a = GDestsOf (LiftedCtorToSpecCtor lCtor a) r + +type family GDatatypeMetaOf (repA :: Type) :: Meta where + GDatatypeMetaOf (D1 meta f p) = meta + GDatatypeMetaOf (M1 _ _ f p) = GDatatypeMetaOf (f p) + GDatatypeMetaOf _ = TypeError ('Text "No match for GDatatypeMetaOf") + +type family GFieldsOf (repA :: Type) :: [(Meta, Type)] where + GFieldsOf (S1 meta f p) = '[ '(meta, GSlotTypeOf (f p))] + GFieldsOf (U1 _) = '[] + GFieldsOf ((f :*: g) p) = GFieldsOf (f p) ++ GFieldsOf (g p) + GFieldsOf (M1 _ _ f p) = GFieldsOf (f p) + GFieldsOf _ = TypeError ('Text "No match for GFieldsOf") + +type family GSlotTypeOf (repA :: Type) :: Type where + GSlotTypeOf (K1 _ c _) = c + GSlotTypeOf (M1 _ _ f p) = GSlotTypeOf (f p) + GSlotTypeOf _ = TypeError ('Text "No match for GSlotTypeOf") + +type family GSpecCtorOf (symCtor :: Symbol) (repA :: Type) :: Maybe (Meta, [(Meta, Type)]) where + GSpecCtorOf symCtor (C1 ('MetaCons symCtor x y) f p) = 'Just '(('MetaCons symCtor x y), GFieldsOf (f p)) + GSpecCtorOf symCtor (C1 ('MetaCons _ _ _) _ _) = 'Nothing + GSpecCtorOf symCtor ((f :+: g) p) = GSpecCtorOf symCtor (f p) <|> GSpecCtorOf symCtor (g p) + GSpecCtorOf symCtor (V1 _) = 'Nothing + GSpecCtorOf symCtor (M1 _ _ f p) = GSpecCtorOf symCtor (f p) + GSpecCtorOf _ _ = TypeError ('Text "No match for GSpecCtorOf") + +type family LiftedCtorToSpecCtor lCtor (a :: Type) :: (Meta, [(Meta, Type)]) where + LiftedCtorToSpecCtor lCtor a = FromJust (GSpecCtorOf (LiftedCtorToSymbol lCtor) (Rep a ())) + +type family (a :: [k]) ++ (b :: [k]) :: [k] where + '[] ++ y = y + (x : xs) ++ y = x : (xs ++ y) + _ ++ _ = TypeError ('Text "No match for ++") + +type family FromJust (x :: Maybe k) :: k where + FromJust ('Just v) = v + FromJust 'Nothing = TypeError ('Text "FromJust error: got 'Nothing") + +type family (x :: Maybe k) <|> (y :: Maybe k) :: Maybe k where + ('Just v) <|> _ = 'Just v + 'Nothing <|> y = y diff --git a/src-version-changes/ghc-dps-compact/before/Compact/Destination.hs b/src-version-changes/ghc-dps-compact/before/Compact/Destination.hs new file mode 100644 index 00000000..8034e496 --- /dev/null +++ b/src-version-changes/ghc-dps-compact/before/Compact/Destination.hs @@ -0,0 +1 @@ +module Compact.Destination () where diff --git a/src-version-changes/ghc-dps-compact/before/Compact/Destination/Internal.hs b/src-version-changes/ghc-dps-compact/before/Compact/Destination/Internal.hs new file mode 100644 index 00000000..2b426658 --- /dev/null +++ b/src-version-changes/ghc-dps-compact/before/Compact/Destination/Internal.hs @@ -0,0 +1 @@ +module Compact.Destination.Internal () where diff --git a/src/Data/Unrestricted/Linear/Internal/Ur.hs b/src/Data/Unrestricted/Linear/Internal/Ur.hs index 412bde8a..5ac82a39 100644 --- a/src/Data/Unrestricted/Linear/Internal/Ur.hs +++ b/src/Data/Unrestricted/Linear/Internal/Ur.hs @@ -59,6 +59,13 @@ lift f (Ur a) = Ur (f a) lift2 :: (a -> b -> c) -> Ur a %1 -> Ur b %1 -> Ur c lift2 f (Ur a) (Ur b) = Ur (f a b) +instance (Prelude.Eq a) => Prelude.Eq (Ur a) where + Ur x == Ur y = x Prelude.== y + Ur x /= Ur y = x Prelude./= y + +instance (Prelude.Show a) => Prelude.Show (Ur a) where + show (Ur x) = "Ur (" Prelude.++ Prelude.show x Prelude.++ ")" + instance Prelude.Functor Ur where fmap f (Ur a) = Ur (f a) diff --git a/stack.yaml b/stack.yaml index 790b9413..e9a94f22 100644 --- a/stack.yaml +++ b/stack.yaml @@ -2,3 +2,8 @@ resolver: lts-22.34 packages: - '.' extra-deps: +- ormolu-0.7.5.0 +- Cabal-syntax-3.12.1.0@sha256:6dbb06fb08ff77520947fb4c1ef281c9cea5b8dc7fd9a41ad62273fa916cf4b2,7407 +- ghc-lib-parser-9.10.1.20240511@sha256:8bf3d512642fae8b38a119d0f440dc02477bed8520a5f3cd814a765505f80d76,17528 +- text-2.1.1@sha256:78c3fb91055d0607a80453327f087b9dc82168d41d0dca3ff410d21033b5e87d,10653 +- parsec-3.1.17.0@sha256:8407cbd428d7f640a0fff8891bd2f7aca13cebe70a5e654856f8abec9a648b56,5149 diff --git a/stack.yaml.lock b/stack.yaml.lock index 401a580e..277f6a8b 100644 --- a/stack.yaml.lock +++ b/stack.yaml.lock @@ -3,7 +3,42 @@ # For more information, please see the documentation at: # https://docs.haskellstack.org/en/stable/lock_files -packages: [] +packages: +- completed: + hackage: ormolu-0.7.5.0@sha256:7f56ba2fde3291ac9ad8c77c4f027e247ff57deff1f5675d9c2cb5dd993d51c9,5774 + pantry-tree: + sha256: 6256bb00b3fef0c68ea67829ace5d05483e200ade6b223af6da3ea1b76047899 + size: 100728 + original: + hackage: ormolu-0.7.5.0 +- completed: + hackage: Cabal-syntax-3.12.1.0@sha256:6dbb06fb08ff77520947fb4c1ef281c9cea5b8dc7fd9a41ad62273fa916cf4b2,7407 + pantry-tree: + sha256: 62e4b1bbdf7fe7d5259f45811e6fd0131823a10a8ec8c5eaf25370d444ac263a + size: 11051 + original: + hackage: Cabal-syntax-3.12.1.0@sha256:6dbb06fb08ff77520947fb4c1ef281c9cea5b8dc7fd9a41ad62273fa916cf4b2,7407 +- completed: + hackage: ghc-lib-parser-9.10.1.20240511@sha256:8bf3d512642fae8b38a119d0f440dc02477bed8520a5f3cd814a765505f80d76,17528 + pantry-tree: + sha256: 1f1f9f83ac6e326fec01a46a5f3c3991d84a3d254e4ed6e0e84d84f92f12e30a + size: 37484 + original: + hackage: ghc-lib-parser-9.10.1.20240511@sha256:8bf3d512642fae8b38a119d0f440dc02477bed8520a5f3cd814a765505f80d76,17528 +- completed: + hackage: text-2.1.1@sha256:78c3fb91055d0607a80453327f087b9dc82168d41d0dca3ff410d21033b5e87d,10653 + pantry-tree: + sha256: 8251d517ceafa2680250ddb939f4a2b89bf231314cf6a218134af900e154d7cd + size: 8413 + original: + hackage: text-2.1.1@sha256:78c3fb91055d0607a80453327f087b9dc82168d41d0dca3ff410d21033b5e87d,10653 +- completed: + hackage: parsec-3.1.17.0@sha256:8407cbd428d7f640a0fff8891bd2f7aca13cebe70a5e654856f8abec9a648b56,5149 + pantry-tree: + sha256: 0922d72bd7115bbb590757bd92a827021dfe745ed6c0cd22856f767bee83d91f + size: 2810 + original: + hackage: parsec-3.1.17.0@sha256:8407cbd428d7f640a0fff8891bd2f7aca13cebe70a5e654856f8abec9a648b56,5149 snapshots: - completed: sha256: edbd50d7e7c85c13ad5f5835ae2db92fab1e9cf05ecf85340e2622ec0a303df1 diff --git a/test-examples-version-changes/ghc-dps-compact/after/Test/Compact.hs b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact.hs new file mode 100644 index 00000000..7734d4ce --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact.hs @@ -0,0 +1,19 @@ +module Test.Compact where + +import Test.Compact.BFTraversal (bftraversalTests) +import Test.Compact.DList (dlistTests) +import Test.Compact.Map (mapTests) +import Test.Compact.Queue (queueTests) +import Test.Compact.SExpr (sexprTests) +import Test.Tasty + +compactTests :: TestTree +compactTests = + testGroup + "DPS interface for compact regions" + [ bftraversalTests, + dlistTests, + mapTests, + queueTests, + sexprTests + ] diff --git a/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/BFTraversal.hs b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/BFTraversal.hs new file mode 100644 index 00000000..03c809bf --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/BFTraversal.hs @@ -0,0 +1,25 @@ +module Test.Compact.BFTraversal where + +import Compact.BFTraversal +import Test.Compact.Utils +import Test.Tasty (TestTree) + +dataset :: BinTree () +dataset = + Node + () + (Node () (Leaf ()) (Leaf ())) + (Node () (Leaf ()) Nil) + +expected :: (BinTree Int, Int) +expected = + ( Node + 0 + (Node 1 (Leaf 3) (Leaf 4)) + (Node 2 (Leaf 5) Nil), + 6 + ) + +bftraversalTests :: TestTree +bftraversalTests = + safetySameAsExpected "Breadth-first tree traversal" impls dataset expected diff --git a/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/DList.hs b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/DList.hs new file mode 100644 index 00000000..9ff7843f --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/DList.hs @@ -0,0 +1,13 @@ +{-# OPTIONS_GHC -Wno-type-defaults #-} + +module Test.Compact.DList where + +import Compact.DList +import Test.Compact.Utils +import Test.Tasty (TestTree) + +dataset :: [[Int]] +dataset = fmap (\i -> [(10 * i + 0) .. (10 * i + 9)]) [0 .. (((2 ^ 10) `div` 10) - 1)] + +dlistTests :: TestTree +dlistTests = safetySameAsFirstImpl "List & Difference lists concatenation" impls dataset diff --git a/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Map.hs b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Map.hs new file mode 100644 index 00000000..2613b9c5 --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Map.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE LinearTypes #-} +{-# OPTIONS_GHC -Wno-type-defaults #-} + +module Test.Compact.Map where + +import Compact.Map +import Test.Compact.Utils +import Test.Tasty (TestTree) + +dataset :: [Int] +dataset = [1 .. 2 ^ 10] + +mapTests :: TestTree +mapTests = safetySameAsFirstImpl "Map function over list of integers" impls dataset diff --git a/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Queue.hs b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Queue.hs new file mode 100644 index 00000000..a5a3b357 --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Queue.hs @@ -0,0 +1,10 @@ +{-# OPTIONS_GHC -Wno-type-defaults #-} + +module Test.Compact.Queue where + +import Compact.Queue +import Test.Compact.Utils +import Test.Tasty (TestTree) + +queueTests :: TestTree +queueTests = safetySameAsFirstImpl "Enqueue elements in a queue" impls (2 ^ 10) diff --git a/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/SExpr.hs b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/SExpr.hs new file mode 100644 index 00000000..840c544d --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/SExpr.hs @@ -0,0 +1,16 @@ +module Test.Compact.SExpr where + +import Compact.SExpr +import Data.ByteString.Char8 (ByteString, pack) +import Test.Compact.Utils +import Test.Tasty (TestTree) + +dataset :: ByteString +dataset = pack "(ert-deftest company-shows-keywords-alongside-completions-alphabetically () :tags '(company) (switch-to-buffer \"*TESTING COMPANY MODE ~ Python*\"))" + +expected :: Either SExprParseError SExpr +expected = + Right (SList 145 [SSymbol 11 "ert-deftest", SSymbol 71 "company-shows-keywords-alongside-completions-alphabetically", SList 74 [], SSymbol 80 ":tags", SSymbol 82 "'", SList 91 [SSymbol 90 "company"], SList 144 [SSymbol 109 "switch-to-buffer", SString 143 "*TESTING COMPANY MODE ~ Python*"]]) + +sexprTests :: TestTree +sexprTests = safetySameAsExpected "S-expression parser" impls dataset expected diff --git a/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Utils.hs b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Utils.hs new file mode 100644 index 00000000..5d216ff3 --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/after/Test/Compact/Utils.hs @@ -0,0 +1,33 @@ +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE RankNTypes #-} +{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-} + +module Test.Compact.Utils where + +import Data.Functor ((<&>)) +import Test.Tasty (TestTree, testGroup) +import Test.Tasty.HUnit (assertEqual, testCaseInfo) + +safetySameAsFirstImpl :: forall m a r. (Show r, Eq r) => String -> [(a %m -> r, String, Bool)] -> a -> TestTree +safetySameAsFirstImpl name impls sampleData = do + let ((refImpl, refImplName, _) : otherImpls) = impls + testGroup + ("All " ++ name ++ " implementations give the same result") + ( otherImpls <&> \(impl, implName, _) -> + testCaseInfo (refImplName ++ " and " ++ implName ++ " give the same result") $ do + let expected = refImpl sampleData + actual = impl sampleData + assertEqual "same result" expected actual + return "" + ) + +safetySameAsExpected :: forall m a r. (Show r, Eq r) => String -> [(a %m -> r, String, Bool)] -> a -> r -> TestTree +safetySameAsExpected name impls sampleData expected = do + testGroup + ("All " ++ name ++ " implementations give the same result") + ( impls <&> \(impl, implName, _) -> + testCaseInfo (implName ++ " gives the expected result") $ do + let actual = impl sampleData + assertEqual "same result" expected actual + return "" + ) diff --git a/test-examples-version-changes/ghc-dps-compact/before/Test/Compact.hs b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact.hs new file mode 100644 index 00000000..f6b5e4a3 --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact.hs @@ -0,0 +1,9 @@ +module Test.Compact where + +import Test.Tasty + +compactTests :: TestTree +compactTests = + testGroup + "DPS interface for compact regions (unsupported in this GHC version)" + [] diff --git a/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/BFTraversal.hs b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/BFTraversal.hs new file mode 100644 index 00000000..632ad697 --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/BFTraversal.hs @@ -0,0 +1 @@ +module Test.Compact.BFTraversal () where diff --git a/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/DList.hs b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/DList.hs new file mode 100644 index 00000000..36d6bade --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/DList.hs @@ -0,0 +1 @@ +module Test.Compact.DList () where diff --git a/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Map.hs b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Map.hs new file mode 100644 index 00000000..062cd87e --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Map.hs @@ -0,0 +1 @@ +module Test.Compact.Map () where diff --git a/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Queue.hs b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Queue.hs new file mode 100644 index 00000000..ba038fa0 --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Queue.hs @@ -0,0 +1 @@ +module Test.Compact.Queue () where diff --git a/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/SExpr.hs b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/SExpr.hs new file mode 100644 index 00000000..115260d7 --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/SExpr.hs @@ -0,0 +1 @@ +module Test.Compact.SExpr () where diff --git a/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Utils.hs b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Utils.hs new file mode 100644 index 00000000..8fdd5a96 --- /dev/null +++ b/test-examples-version-changes/ghc-dps-compact/before/Test/Compact/Utils.hs @@ -0,0 +1 @@ +module Test.Compact.Utils () where diff --git a/test-examples/Main.hs b/test-examples/Main.hs index 1d0d3925..03591e83 100644 --- a/test-examples/Main.hs +++ b/test-examples/Main.hs @@ -1,7 +1,8 @@ module Main where +import Test.Compact (compactTests) +import Test.Data.Array.Mutable.Quicksort (quicksortTests) import Test.Foreign (foreignGCTests) -import Test.Simple.Quicksort (quickSortTests) import Test.Tasty main :: IO () @@ -12,5 +13,6 @@ allTests = testGroup "All tests" [ foreignGCTests, - quickSortTests + quicksortTests, + compactTests ] diff --git a/test-examples/Test/Data/Array/Mutable/Quicksort.hs b/test-examples/Test/Data/Array/Mutable/Quicksort.hs new file mode 100644 index 00000000..ab3f8af1 --- /dev/null +++ b/test-examples/Test/Data/Array/Mutable/Quicksort.hs @@ -0,0 +1,29 @@ +{-# LANGUAGE OverloadedStrings #-} + +module Test.Data.Array.Mutable.Quicksort (quicksortTests) where + +import Data.Array.Mutable.Quicksort (qsortUsingArray, qsortUsingList) +import Data.List (sort) +import Hedgehog +import qualified Hedgehog.Gen as Gen +import qualified Hedgehog.Range as Range +import Test.Tasty +import Test.Tasty.Hedgehog (testPropertyNamed) + +quicksortTests :: TestTree +quicksortTests = + testGroup + "quicksort tests" + [ testPropertyNamed "sort xs === qsortUsingArray xs" "testQsortUsingArray" testQsortUsingArray, + testPropertyNamed "sort xs === qsortUsingList xs" "testQsortUsingList" testQsortUsingList + ] + +testQsortUsingArray :: Property +testQsortUsingArray = property $ do + xs <- forAll $ Gen.list (Range.linear 0 1000) (Gen.int $ Range.linear 0 100) + sort xs === qsortUsingArray xs + +testQsortUsingList :: Property +testQsortUsingList = property $ do + xs <- forAll $ Gen.list (Range.linear 0 1000) (Gen.int $ Range.linear 0 100) + sort xs === qsortUsingList xs diff --git a/test-examples/Test/Foreign.hs b/test-examples/Test/Foreign.hs index 5463a13f..317111f0 100644 --- a/test-examples/Test/Foreign.hs +++ b/test-examples/Test/Foreign.hs @@ -9,7 +9,6 @@ module Test.Foreign (foreignGCTests) where import Control.Exception hiding (assert) import Control.Monad (void) -import Data.Typeable import qualified Foreign.Heap as Heap import Foreign.List (List) import qualified Foreign.List as List @@ -63,7 +62,7 @@ eqList :: eqList l1 l2 = move $ (List.toList l1) == (List.toList l2) data InjectedError = InjectedError - deriving (Typeable, Show) + deriving (Show) instance Exception InjectedError diff --git a/test-examples/Test/Simple/Quicksort.hs b/test-examples/Test/Simple/Quicksort.hs deleted file mode 100644 index 675ca2ee..00000000 --- a/test-examples/Test/Simple/Quicksort.hs +++ /dev/null @@ -1,19 +0,0 @@ -{-# LANGUAGE OverloadedStrings #-} - -module Test.Simple.Quicksort (quickSortTests) where - -import Data.List (sort) -import Hedgehog -import qualified Hedgehog.Gen as Gen -import qualified Hedgehog.Range as Range -import Simple.Quicksort (quickSort) -import Test.Tasty -import Test.Tasty.Hedgehog (testPropertyNamed) - -quickSortTests :: TestTree -quickSortTests = testPropertyNamed "quicksort sorts" "testQuicksort" testQuicksort - -testQuicksort :: Property -testQuicksort = property $ do - xs <- forAll $ Gen.list (Range.linear 0 1000) (Gen.int $ Range.linear 0 100) - sort xs === quickSort xs diff --git a/test-version-changes/ghc-dps-compact/after/Test/Compact/Destination.hs b/test-version-changes/ghc-dps-compact/after/Test/Compact/Destination.hs new file mode 100644 index 00000000..39690fde --- /dev/null +++ b/test-version-changes/ghc-dps-compact/after/Test/Compact/Destination.hs @@ -0,0 +1,111 @@ +{-# LANGUAGE AllowAmbiguousTypes #-} +{-# LANGUAGE BangPatterns #-} +{-# LANGUAGE DataKinds #-} +{-# LANGUAGE DeriveAnyClass #-} +{-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE FlexibleContexts #-} +{-# LANGUAGE ImpredicativeTypes #-} +{-# LANGUAGE KindSignatures #-} +{-# LANGUAGE LinearTypes #-} +{-# LANGUAGE MagicHash #-} +{-# LANGUAGE RankNTypes #-} +{-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE TypeAbstractions #-} +{-# LANGUAGE TypeApplications #-} +{-# LANGUAGE NoImplicitPrelude #-} + +module Test.Compact.Destination (destinationTests) where + +import Compact.Destination +import Control.Functor.Linear ((<&>)) +import Control.Monad (return) +import GHC.Generics (Generic) +import Prelude.Linear hiding (Eq) +import Test.Tasty +import Test.Tasty.HUnit +import Prelude (Eq) + +destinationTests :: TestTree +destinationTests = + testGroup + "DPS interface for compact regions" + [ testCaseInfo "Dests for compact region: compose when RHS is freshly allocated" compOnFreshAlloc, + testCaseInfo "Dests for compact region: compose when RHS has already been filled" compOnUsedAlloc, + testCaseInfo "Dests for compact region: fill custom data (via generic) and return companion value with fromIncomplete" fillCustomDataAndExtract + ] + +data Foo a b = MkFoo {unBar :: a, unBaz :: (b, b), unBoo :: a} deriving (Eq, Generic, Show) + +compOnFreshAlloc :: IO String +compOnFreshAlloc = do + let actual :: Ur (Int, Int) + !actual = + withRegion + ( \ @r t -> case dup2 t of + (t', t'') -> + fromIncomplete_ $ + (alloc @r t') + <&> ( \dp -> + case (dp & fill @'(,)) of + (dl, dr) -> + dl + & fillLeaf 1 + `lseq` dr + & fillComp (alloc @r t'') + & fillLeaf 2 + ) + ) + expected :: Ur (Int, Int) + !expected = Ur (1, 2) + assertEqual "same result" expected actual + return "" + +compOnUsedAlloc :: IO String +compOnUsedAlloc = do + let actual :: Ur (Int, (Int, Int)) + !actual = + withRegion + ( \ @r t -> case dup2 t of + (t', t'') -> + fromIncomplete_ $ + (alloc @r t') + <&> ( \dp -> + case dp & fill @'(,) of + (dl, dr) -> + dl + & fillLeaf 1 + `lseq` dr + & fillComp ((alloc @r t'') <&> (\dp' -> case dp' & fill @'(,) of (dr1, dr2) -> dr1 & fillLeaf 2 `lseq` dr2)) + & fillLeaf 3 + ) + ) + expected :: Ur (Int, (Int, Int)) + !expected = Ur (1, (2, 3)) + assertEqual "same result" expected actual + return "" + +fillCustomDataAndExtract :: IO String +fillCustomDataAndExtract = do + let actual :: Ur (Foo Int Char, Int) + !actual = + withRegion + ( \ @r t -> + fromIncomplete $ + (alloc @r t) + <&> ( \d -> + case d & fill @'MkFoo of + (dBar, dBaz, dBoo) -> + dBar + & fillLeaf 1 + `lseq` ( case dBaz & fill @'(,) of + (dl, dr) -> dl & fillLeaf 'a' `lseq` dr & fillLeaf 'b' + ) + `lseq` dBoo + & fillLeaf 2 + `lseq` Ur 14 + ) + ) + expected :: Ur (Foo Int Char, Int) + !expected = Ur (MkFoo 1 ('a', 'b') 2, 14) + assertEqual "same result" expected actual + return "" diff --git a/test-version-changes/ghc-dps-compact/before/Test/Compact/Destination.hs b/test-version-changes/ghc-dps-compact/before/Test/Compact/Destination.hs new file mode 100644 index 00000000..8a0d353a --- /dev/null +++ b/test-version-changes/ghc-dps-compact/before/Test/Compact/Destination.hs @@ -0,0 +1,9 @@ +module Test.Compact.Destination (destinationTests) where + +import Test.Tasty + +destinationTests :: TestTree +destinationTests = + testGroup + "DPS interface for compact regions (unsupported in this GHC version)" + [] diff --git a/test/Main.hs b/test/Main.hs index 8741474b..7527bcd2 100644 --- a/test/Main.hs +++ b/test/Main.hs @@ -3,15 +3,16 @@ module Main where -import Test.Data.Destination (destArrayTests) +import Test.Compact.Destination (destinationTests) +import Test.Data.Array.Destination (destArrayTests) +import Test.Data.Array.Mutable (mutArrTests) +import Test.Data.Array.Polarized (polarizedArrayTests) import Test.Data.Functor.Linear (genericTests) -import Test.Data.Mutable.Array (mutArrTests) -import Test.Data.Mutable.HashMap (mutHMTests) -import Test.Data.Mutable.Set (mutSetTests) -import Test.Data.Mutable.Vector (mutVecTests) -import Test.Data.Polarized (polarizedArrayTests) +import Test.Data.HashMap.Mutable (mutHMTests) import Test.Data.Replicator (replicatorInspectionTests) +import Test.Data.Set.Mutable (mutSetTests) import Test.Data.V (vInspectionTests) +import Test.Data.Vector.Mutable (mutVecTests) import Test.Tasty main :: IO () @@ -29,7 +30,8 @@ allTests = mutSetTests, destArrayTests, polarizedArrayTests, - genericTests + genericTests, + destinationTests ], testGroup "Inspection tests" diff --git a/test/Test/Data/Destination.hs b/test/Test/Data/Array/Destination.hs similarity index 97% rename from test/Test/Data/Destination.hs rename to test/Test/Data/Array/Destination.hs index be7d6587..71b832e7 100644 --- a/test/Test/Data/Destination.hs +++ b/test/Test/Data/Array/Destination.hs @@ -1,7 +1,7 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE NoImplicitPrelude #-} -module Test.Data.Destination (destArrayTests) where +module Test.Data.Array.Destination (destArrayTests) where import qualified Data.Array.Destination as DArray import qualified Data.Vector as Vector diff --git a/test/Test/Data/Mutable/Array.hs b/test/Test/Data/Array/Mutable.hs similarity index 99% rename from test/Test/Data/Mutable/Array.hs rename to test/Test/Data/Array/Mutable.hs index fe831894..560a2e33 100644 --- a/test/Test/Data/Mutable/Array.hs +++ b/test/Test/Data/Array/Mutable.hs @@ -14,7 +14,7 @@ -- Remarks: -- * We don't test for failure on out-of-bound access -- * We don't test the empty constructor because -module Test.Data.Mutable.Array +module Test.Data.Array.Mutable ( mutArrTests, ) where diff --git a/test/Test/Data/Polarized.hs b/test/Test/Data/Array/Polarized.hs similarity index 98% rename from test/Test/Data/Polarized.hs rename to test/Test/Data/Array/Polarized.hs index 836080f7..95f82ea7 100644 --- a/test/Test/Data/Polarized.hs +++ b/test/Test/Data/Array/Polarized.hs @@ -1,7 +1,7 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE NoImplicitPrelude #-} -module Test.Data.Polarized (polarizedArrayTests) where +module Test.Data.Array.Polarized (polarizedArrayTests) where import qualified Data.Array.Polarized as Polar import qualified Data.Array.Polarized.Pull as Pull diff --git a/test/Test/Data/Mutable/HashMap.hs b/test/Test/Data/HashMap/Mutable.hs similarity index 99% rename from test/Test/Data/Mutable/HashMap.hs rename to test/Test/Data/HashMap/Mutable.hs index 876cb126..06e6379d 100644 --- a/test/Test/Data/Mutable/HashMap.hs +++ b/test/Test/Data/HashMap/Mutable.hs @@ -18,7 +18,7 @@ -- * We don't test alter and hope insert and delete tests suffice -- * We don't test filterWithKey and hope the test for filter suffices -- * We don't test mapMaybe since mapMaybeWithKey is more general -module Test.Data.Mutable.HashMap +module Test.Data.HashMap.Mutable ( mutHMTests, ) where diff --git a/test/Test/Data/Mutable/Set.hs b/test/Test/Data/Set/Mutable.hs similarity index 99% rename from test/Test/Data/Mutable/Set.hs rename to test/Test/Data/Set/Mutable.hs index 8b06f009..a1b392f2 100644 --- a/test/Test/Data/Mutable/Set.hs +++ b/test/Test/Data/Set/Mutable.hs @@ -54,7 +54,7 @@ -- for more about how ADT axioms work. -- -- Remark: we are not testing @empty@ since it is trivial. -module Test.Data.Mutable.Set +module Test.Data.Set.Mutable ( mutSetTests, ) where diff --git a/test/Test/Data/Mutable/Vector.hs b/test/Test/Data/Vector/Mutable.hs similarity index 99% rename from test/Test/Data/Mutable/Vector.hs rename to test/Test/Data/Vector/Mutable.hs index e4f6530c..e3e43228 100644 --- a/test/Test/Data/Mutable/Vector.hs +++ b/test/Test/Data/Vector/Mutable.hs @@ -15,7 +15,7 @@ -- Remarks: -- * We don't test for failure on out-of-bound access -- * We don't test the empty constructor -module Test.Data.Mutable.Vector +module Test.Data.Vector.Mutable ( mutVecTests, ) where